Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
with all the esoteric functions PHP has, you would think they would also have something like this:
function ifset($array, $key, $ifnotset = null) {
if(isset($array[$key])) return $array[$key];
return $ifnotset;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment