9e127b9831
Most of this is ported over, except some omissions:
- array_filter, array_key_exists (suspected we had coverage already;
one is a bytecode, and one was rewritten in hhas recently)
- some random cases distinguishing init_null_variant vs. null_variant
16 linhas
312 B
PHP
16 linhas
312 B
PHP
<?php
|
|
|
|
$array = array("step one", "step two", "step three", "step four");
|
|
|
|
// by default, the pointer is on the first element
|
|
var_dump(current($array));
|
|
|
|
// skip two steps
|
|
next($array);
|
|
next($array);
|
|
var_dump(current($array));
|
|
|
|
// reset pointer, start again on step one
|
|
reset($array);
|
|
var_dump(current($array));
|