PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/zend/good/ext/standard/tests/array/bug40191.php

http://github.com/facebook/hiphop-php
PHP | 12 lines | 9 code | 3 blank | 0 comment | 0 complexity | 43ab8aaf92f6297fda19e297db88a694 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. $arrObj = new ArrayObject();
  3. $arrObj->append('foo');
  4. $arrObj->append('bar');
  5. $arrObj->append('foo');
  6. $arr = array_unique($arrObj);
  7. var_dump($arr);
  8. echo "Done\n";
  9. ?>