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($...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn