1--TEST-- 2Test next() function : basic functionality 3--FILE-- 4<?php 5/* Prototype : mixed next(array $array_arg) 6 * Description: Move array argument's internal pointer to the next element and return it 7 * Source code: ext/standard/array.c 8 */ 9 10/* 11 * Test basic functionality of next() 12 */ 13 14echo "*** Testing next() : basic functionality ***\n"; 15 16$array = array('zero', 'one', 'two'); 17echo key($array) . " => " . current($array) . "\n"; 18var_dump(next($array)); 19 20echo key($array) . " => " . current($array) . "\n"; 21var_dump(next($array)); 22 23echo key($array) . " => " . current($array) . "\n"; 24var_dump(next($array)); 25?> 26===DONE=== 27--EXPECTF-- 28*** Testing next() : basic functionality *** 290 => zero 30string(3) "one" 311 => one 32string(3) "two" 332 => two 34bool(false) 35===DONE=== 36