The each() function returns first element key,value and move the internal pointer forward in an array.
Syntax
each(array)
Example
$array=array("a"=>"ram","b"=>"shyam","c"=>"ghanshyam");
print_r (each($array));
Output
Array ( [1] => ram [value] => ram [0] => a [key] => a )
Copyright ©2022 coderraj.com. All Rights Reserved.