i have a array and i want to select the last index
how can I select it
check the picture of problem: [https://xip.li/z3cePZ]
I am new at PHP I do not know what to do
i have a array and i want to select the last index
how can I select it
check the picture of problem: [https://xip.li/z3cePZ]
I am new at PHP I do not know what to do
3
Answers
all you have to do is
echo $users[count($users) – 1];
Use end() -function.
PHP Manual – End function
by using end();