Here, the function I just created can help.
if any of the arguments you pass is empty, it returns false. if it does not return true.
function multi_empty() { foreach(func_get_args() as $value) { if (!isset($value) || empty($value)) return false; } return true; }
Example
multi_empty("hello","world",1234); //Returns true multi_empty("hello","world",'',1234); //Returns false multi_empty("hello","world",1234,$notset,"test","any amount of arguments"); //Returns false
source share