How can i check if this key is the last in an array?
$array = array("a","b","c");
The value "c" would have the key 2
, is there some code like this is_end(2)
which returns true or false depending if they key is the last of the array? Or is there some kind of while()
statement I can do?