PageRenderTime 70ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/slow/ext_array/prev.php

http://github.com/facebook/hiphop-php
PHP | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | 92375c3fc4d6a78390ea4e4984a0cd81 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. <?hh
  2. <<__EntryPoint>>
  3. function main_prev() {
  4. $transport = varray["foot", "bike", "car", "plane"];
  5. var_dump(current($transport));
  6. var_dump(next(inout $transport));
  7. var_dump(next(inout $transport));
  8. var_dump(prev(inout $transport));
  9. var_dump(end(inout $transport));
  10. }