Created
November 24, 2016 17:31
-
-
Save AlbinoDrought/05fa0017f9a1c62fb79e9dd82b168dac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
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