ConFoo Montreal 2026: Call for Papers

Voting

: max(one, nine)?
(Example: nine)

The Note You're Voting On

xedin dot unknown at gmail dot com
7 years ago
Array functions, such as `current()` and `rewind()` will work on `Traversable` as well, PHP 5.0 - 7.3, but not in HHVM:

<?php

$queue
= new ArrayIterator(array('adasdasd'));
reset($queue);
$current = current($queue);
var_dump($current);

?>

See https://3v4l.org/VjCHR

<< Back to user notes page

To Top