Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // check for multiple things being empty
  2. public static function mempty()
  3. {
  4. foreach(func_get_args()[0] as $key => $arg)
  5. {
  6. if(empty($arg))
  7. {
  8. echo $key;
  9. die('empty');
  10. return $key;
  11. }
  12. else
  13. {
  14. continue;
  15. }
  16. }
  17. //return true;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement