1--TEST-- 2Test array_shift() function : usage variations - position of internal pointer 3--FILE-- 4<?php 5/* 6 * Test that the internal pointer is reset after calling array_shift() 7 */ 8 9echo "*** Testing array_shift() : usage variations ***\n"; 10 11$stack = array ('one' => 'un', 'two' => 'deux'); 12 13echo "\n-- Call array_shift() --\n"; 14var_dump($result = array_shift($stack)); 15 16echo "\n-- Position of Internal Pointer in Passed Array: --\n"; 17echo key($stack) . " => " . current ($stack) . "\n"; 18 19echo "Done"; 20?> 21--EXPECT-- 22*** Testing array_shift() : usage variations *** 23 24-- Call array_shift() -- 25string(2) "un" 26 27-- Position of Internal Pointer in Passed Array: -- 28two => deux 29Done 30