How to use isset() with multiple parameters in PHP

1 Answer

0 votes
$a = "PHP";
$b;

if (isset($a, $b)) {
    echo "Both variables are set";
} else {
    echo "One or both variables are not set";
}




/*
run:

One or both variables are not set

*/

 



answered Dec 9, 2023 by avibootz
...