$index
$index
will return the current index of a loop.
Usage
Example(s)
This will create a loop and return the index, starting with 0
instead of 1
:
We use $index
to retrieve the current index:
$index
will return the current index of a loop.
This will create a loop and return the index, starting with 0
instead of 1
:
We use $index
to retrieve the current index: