PageRenderTime 34ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/zend/bad/ext/spl/tests/array_025.php

http://github.com/facebook/hiphop-php
PHP | 9 lines | 8 code | 1 blank | 0 comment | 0 complexity | 5f2f1d358203892d4b4acddadc22d305 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?php
  2. $obj1 = new ArrayObject(new ArrayObject(array(1,2)));
  3. $s = serialize($obj1);
  4. $obj2 = unserialize($s);
  5. print_r($obj1);
  6. echo "$s\n";
  7. print_r($obj2);
  8. ?>