Convert the php array to the object instance code. Php array converted to the object instance code, this program is tested by the programming House, really often run the paste .? Php $ arrayarray (1php, 2 java, 3c); $ arrayobjectnewArrayObject.
- $ Array = array (1 => php,
- 2 => java,
- 3 => c );
- $ Arrayobject = new ArrayObject ($ array );
- Var_dump ($ arrayobject );
- ?>
Running result:
Object (ArrayObject) #1 (1) {["storage": "ArrayObject": private] => array (3) {[1] => string (3) "php" [2] => string (4) "java" [3] => string (3) "c "}}
Http://www.bkjia.com/PHPjc/486154.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/486154.htmlTechArticlephp array converted into object instance code, the program after the House of programming test really often run paste out. ? Php $ array = array (1 = php, 2 = java, 3 = c); $ arrayobject = new ArrayObject ($...