How can i check if all has values do something if one is missing echo something with else. I try with isset but same, i miss something i think.
$da1="da1";
$ba2="";
$za3="za3";
if (!empty($da1)||!empty($ba2)||!empty($za3)) {
echo $da1.$ba2.$za3;
}else{
echo "one is missing";
}
My output is this :
da1za3
!empty($da1)is true, no other checks are done. you need to rethink your logicempty()and make sure that you know what it actually evaluates as empty. php.net/manual/en/function.empty.php