Arquivos
hhvm/hphp/test/slow/array_object/unserialize.php
T
Paul Tarjan cef8fcc6e3 add ArrayObject
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.
2013-05-24 09:48:22 -07:00

11 linhas
175 B
PHP

<?php
$a = new ArrayObject(array(1,2,3));
$b = $a->serialize();
$c = new ArrayObject;
$d = $c->unserialize($b);
var_dump($a);
var_dump($c);
var_dump($d);
var_dump($a == $c);