--TEST-- Test each() function : usage variations - Internal array pointer --FILE-- " . current($arr) . "\n"; echo "\n-- Call to each(): --\n"; var_dump( each($arr) ); echo "\n-- New position: --\n"; echo key($arr) . " => " . current($arr) . "\n"; echo "Done"; ?> --EXPECTF-- *** Testing each() : usage variations *** -- Current position: -- 0 => zero -- Call to each(): -- Deprecated: The each() function is deprecated. This message will be suppressed on further calls in %s on line %d array(4) { [1]=> string(4) "zero" ["value"]=> string(4) "zero" [0]=> int(0) ["key"]=> int(0) } -- New position: -- 1 => one Done