mixed next ( array &$array_variable )
next function does two tasks:
- It moves the array’s internal pointer to the next element in the array, i.e. increments it one position.
- Then it returns the element’s value at the new position.
If the internal pointer is not pointing a valid element (it’s out-of-bounds), then false is returned.
Show It in ActionBasic
In this video, you will see the
next 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.
In this video, you will go deeper into the instruction. Let’s take a deep look at the