mixed prev ( array &$array_variable )
prev function does two tasks:
- It moves the array’s internal pointer to the previous element in the array, i.e. decrements it one position.
- Then it returns the element’s value at the new position.
If the internal pointer is not pointing to a valid element (it’s out-of-bounds), then false is returned.
- The array to be worked on by
Returns either the value of the element at the new position or if the internal pointer is out-of-bounds and not pointing to a valid element, then it returns false.
Show It in ActionBasic
In this video, you will see the
prev function in action through various code examples.
Hands off the keyboard. Web development starts by thinking first, then planning it out, and then coding it.
Deep into the prevPro