PHP pos() functionThe PHP pos( ) function is used to fetch the value of the current element in an array. The PHP pos( ) function is an alias of current( ) function. This function was introduced in PHP 4.0. SyntaxParameter
ReturnsThe pos( ) function returns the value of the current element in an array or false on empty elements. Example 1Output: aajtak Example 2Output: aajtak zeenews Example 3Output: archery badminton badminton Example 4Output: archery badminton badminton archery badminton
Next TopicPHP Array Functions
|