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.
6 linhas
197 B
PHP
6 linhas
197 B
PHP
<?php
|
|
$arrayobj = new ArrayObject(array('zero', 7, 'example'=>'e.g.'));
|
|
var_dump($arrayobj->offsetGet(1));
|
|
var_dump($arrayobj->offsetGet('example'));
|
|
var_dump($arrayobj->offsetExists('notfound'));
|