php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/sym/root/proc/self/root/php-7.1.11/ext/standard/tests/array/ |
| files >> /var/www/html/sub/images/sym/root/proc/self/root/php-7.1.11/ext/standard/tests/array/key_basic.phpt |
--TEST--
Test key() function : basic functionality
--FILE--
<?php
/* Prototype : mixed key(array $array_arg)
* Description: Return the key of the element currently pointed to by the internal array pointer
* Source code: ext/standard/array.c
*/
/*
* Test basic functionality of key()
*/
echo "*** Testing key() : basic functionality ***\n";
$array = array ('zero', 99 => 'one', 'two', 'three' => 3);
echo "\n-- Initial Position: --\n";
var_dump(key($array));
echo "\n-- Next Position: --\n";
next($array);
var_dump(key($array));
echo "\n-- End Position: --\n";
end($array);
var_dump(key($array));
echo "\n-- Past end of the array --\n";
next($array);
var_dump(key($array));
?>
===DONE===
--EXPECTF--
*** Testing key() : basic functionality ***
-- Initial Position: --
int(0)
-- Next Position: --
int(99)
-- End Position: --
string(5) "three"
-- Past end of the array --
NULL
===DONE===
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`