cef8fcc6e3
This is a pure PHP implementation of ArrayObject. It does't match the reference semantics of zend's implementation, but it is much easier to build this in pure PHP, so its a good first step. It is better to have it like this, than to not have it at all.
36 linhas
696 B
Plaintext
36 linhas
696 B
Plaintext
object(ArrayObject)#1 (3) {
|
|
["storage":"ArrayObject":private]=>
|
|
object(Example)#2 (3) {
|
|
["property"]=>
|
|
string(11) "prop:public"
|
|
["4"]=>
|
|
string(4) "four"
|
|
["group"]=>
|
|
array(2) {
|
|
[0]=>
|
|
string(2) "g1"
|
|
[1]=>
|
|
string(2) "g2"
|
|
}
|
|
}
|
|
["flags":"ArrayObject":private]=>
|
|
int(0)
|
|
["iteratorClass":"ArrayObject":private]=>
|
|
string(13) "ArrayIterator"
|
|
}
|
|
object(ArrayObject)#3 (3) {
|
|
["storage":"ArrayObject":private]=>
|
|
array(3) {
|
|
[0]=>
|
|
string(4) "zero"
|
|
[1]=>
|
|
string(3) "one"
|
|
[""]=>
|
|
string(4) "last"
|
|
}
|
|
["flags":"ArrayObject":private]=>
|
|
int(0)
|
|
["iteratorClass":"ArrayObject":private]=>
|
|
string(13) "ArrayIterator"
|
|
}
|