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