if not true php code example
Example 1: php or
$num1 = 5;
$num2 = 10;
$num1 === 5 or $num2 === 6;
// Shorthand
$num1 === 5 || $num2 === 6;
Example 2: if not php
$a = true;
if(!$a) {
echo "False"; // Will return this
} else {
echo "True";
}
$num1 = 5;
$num2 = 10;
$num1 === 5 or $num2 === 6;
// Shorthand
$num1 === 5 || $num2 === 6;
$a = true;
if(!$a) {
echo "False"; // Will return this
} else {
echo "True";
}