Last Updated: February 25, 2016
· nickel715

check array keys in PHP

There are many ways to check if an array key exists or is empty.

This Table compares the different methods and there results



1 Response
Add your response

Realize that, in this case, isset and empty have function-like syntaxes, but they aren't really functions, different of array_key_exists, that is a syntactic abstraction for using isset or empty. Monads could be implemeted to avoid exceptions with nullables.

over 1 year ago ·