1--TEST-- 2Test reset() function : usage variations - unset first element 3--FILE-- 4<?php 5/* 6 * Unset first element of an array and test behaviour of reset() 7 */ 8 9echo "*** Testing reset() : usage variations ***\n"; 10 11$array = array('a', 'b', 'c'); 12 13echo "\n-- Initial Position: --\n"; 14echo current($array) . " => " . key($array) . "\n"; 15 16echo "\n-- Unset First element in array and check reset() --\n"; 17unset($array[0]); 18var_dump(reset($array)); 19?> 20--EXPECT-- 21*** Testing reset() : usage variations *** 22 23-- Initial Position: -- 24a => 0 25 26-- Unset First element in array and check reset() -- 27string(1) "b" 28