PHP array is converted into object instance code. This program has been tested by Programming Home and it runs normally.
- $array = array(1 => php,
- 2 => java,
- ?>
-
-
- Run 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.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/486154.html
TechArticle
php array is converted into object instance code. This program has been tested by Programming Home and it runs normally. ?php $array = array(1 = php, 2 = java, 3 = c ); $arrayobject = new ArrayObject($...