each()
function returns the key name and key value of the current element and moves the internal pointer forward.
The key name and key value of this element are returned to an array with four elements. Two elements (1 and Value) contain key values, and two elements (0 and Key) contain key names.
Related methods:
Each ( array )
parameter | describe |
---|---|
array | Required. Specifies the array to be used. |
each()
function generates an array consisting of the key names and key values of the elements pointed to by the current internal pointer of the array, and moves the internal pointer forward.
The returned array contains four elements: key names 0, 1, key, and value. Unit 0 and key contain the key names of the array units, and 1 and value contain the data.
If the internal pointer exceeds the array range, this function returns FALSE.