PHP prev() functionThe PHP prev( ) function is used to fetch the array value in the previous place, pointed by the internal array pointer. This function was introduced in PHP 4.0. SyntaxParameter
ReturnsThe prev( ) function returns the value of the previous element in the array on success or false if there are no more elements. Example 1Output: php Java Example 2Output: Java php Java Example 3Output: arctic antarctic arctic Example 4Output: arctic indian arctic arctic
Next TopicPHP Array Functions
|