each


php128 apg

RETURNS the current key and value pair from an array and advance the ARRAY cursor.





This function is deprecated as of PHP 7.2.0, because of this, its use is highly not recommended.

In PHP 8.0.XX this function is no longer available and if used causes the emission of a Fatal error: ....



<?php

arr each 
arr &$array )

where,

$array The given input ARRAY

?>

 $array 


The given input array.

Can be passed by reference.



  1 EXERCISE   

<?php

$arr01b 
= array(2416256);

print_r($arr01b);
echo 
'<br><br><br>';


$eac01b each($arr01b);


print_r($eac01b);

?>