Skip to content

Instantly share code, notes, and snippets.

@AlexH-HankIT
Created August 17, 2015 00:58
Show Gist options
  • Select an option

  • Save AlexH-HankIT/5f5cfa63143b574ffb2d to your computer and use it in GitHub Desktop.

Select an option

Save AlexH-HankIT/5f5cfa63143b574ffb2d to your computer and use it in GitHub Desktop.
empty function for multiple values
/**
*
* empty() function for multiple values
*
* @link http://stackoverflow.com/questions/4993104/using-ifempty-with-multiple-variables-not-in-an-array
* @return bool
*
*/
public function mempty() {
foreach (func_get_args() as $arg)
if (empty($arg))
continue;
else
return false;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment