each « Data Structure « PHP






1.Using each() function in conjunction with list()
2.each() function returns the key-value pair at the current pointer position and moves the pointer to the next element.