PHP pos() Function

The pos() function returns the value of the current element in an array.This function is an alias of the current() function.Every array has an internal pointer to its "current" element, which is initialized to the first element inserted into the array.pos — Alias of current() This function is an alias of: current()

Example -