The What
Description
The 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.
You will grow in this profession when you incrementally and systematically stretch yourself....bit-by-bit.
Go DeepPro
In this video, you will go deeper into the instruction. Let’s take a deep look at the next
function.