Home >> PHP >> each() function in PHP

each() function in PHP

The each() function returns first element key,value and move the internal pointer forward in an array.





print_r (each($array));


Array ( [1] => ram [value] => ram [0] => a [key] => a )


Post Your Comment

Next Questions
end() function
extract() function
in_array() function
key() function
krsort() function
ksort() function
list() function
natcasesort() function
natsort() function
pos() function
prev() function
range() function
reset() function
rsort() function
shuffle() function
sizeof() function
sort() function
uasort() function
uksort() function
usort() function
What is the difference between array_combine() and array_merge()
What are the differences between array_diff(), array_diff_assoc() and array_diff_key()
What is the difference between array_intersect_assoc() and array_intersect_key()
What is difference between array_push() and array_pop()
What is difference between array_product() and array_sum()

Copyright ©2022 coderraj.com. All Rights Reserved.