Skip to content

Instantly share code, notes, and snippets.

@varfrog
Last active February 15, 2021 13:20
Show Gist options
  • Save varfrog/da3c947777a035183b7c6d14e8c7c956 to your computer and use it in GitHub Desktop.
Save varfrog/da3c947777a035183b7c6d14e8c7c956 to your computer and use it in GitHub Desktop.
php empty()
<?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