The What
Description
The 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.
Parameters
array_variable- The array to be worked on by
prev.
Return Values
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.
Once upon a time, there was a developer... You! This is going to be a good story...
Deep into the prevPro
