1--TEST-- 2Test natcasesort() function : usage variations - position of internal array pointer 3--FILE-- 4<?php 5/* 6 * Check position of internal array pointer after calling natcasesort() 7 */ 8 9echo "*** Testing natcasesort() : usage variations ***\n"; 10 11$array_arg = array ('img13', 'img20', 'img2', 'img1'); 12 13echo "\n-- Initial Position of Internal Pointer: --\n"; 14echo key($array_arg) . " => " . current ($array_arg) . "\n"; 15 16echo "\n-- Call natcasesort() --\n"; 17var_dump(natcasesort($array_arg)); 18var_dump($array_arg); 19 20echo "\n-- Position of Internal Pointer in Passed Array: --\n"; 21echo key($array_arg) . " => " . current ($array_arg) . "\n"; 22 23echo "Done"; 24?> 25--EXPECT-- 26*** Testing natcasesort() : usage variations *** 27 28-- Initial Position of Internal Pointer: -- 290 => img13 30 31-- Call natcasesort() -- 32bool(true) 33array(4) { 34 [3]=> 35 string(4) "img1" 36 [2]=> 37 string(4) "img2" 38 [0]=> 39 string(5) "img13" 40 [1]=> 41 string(5) "img20" 42} 43 44-- Position of Internal Pointer in Passed Array: -- 453 => img1 46Done 47