Created
January 3, 2014 15:41
-
-
Save yellowberri-snippets/8239940 to your computer and use it in GitHub Desktop.
PHP: is_empty()
This file contains hidden or 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
function is_empty(&$val) { | |
return empty($val) && $val !== "0"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment