KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I check if this key is the last element 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? Is there some kind of while() statement I can use?
Tags (comma-separated)
Save Edits
Cancel