Last active
February 15, 2021 13:20
-
-
Save varfrog/da3c947777a035183b7c6d14e8c7c956 to your computer and use it in GitHub Desktop.
php 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
<?php | |
$foo = '0'; | |
echo empty($foo) ? 1 : 0; | |
echo PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment