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.
13 linhas
304 B
PHP
13 linhas
304 B
PHP
<?php
|
|
class Example {
|
|
public $public = 'prop:public';
|
|
private $prv = 'prop:private';
|
|
protected $prt = 'prop:protected';
|
|
}
|
|
|
|
$arrayobj = new ArrayObject(new Example());
|
|
var_dump($arrayobj->count());
|
|
|
|
$arrayobj = new ArrayObject(array('first','second','third'));
|
|
var_dump($arrayobj->count());
|