Skip to content

Instantly share code, notes, and snippets.

Created June 20, 2014 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6b63a3fe3f59af669aa9 to your computer and use it in GitHub Desktop.
Save anonymous/6b63a3fe3f59af669aa9 to your computer and use it in GitHub Desktop.
my_empty.php
<?php
function my_empty() {
$args = func_get_args();
foreach ($args as $val) {
if(empty($val)) {
return true;
}
}
return false;
}
var_dump(my_empty(1, 2, 3, ''));
var_dump(my_empty('lol', 'php'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment