if a use b php code example
Example 1: php if
<?php
if ($a > $b) {
echo "a is bigger than b";
$b = $a;
}
?>
Example 2: if not php
$a = true;
if(!$a) {
echo "False"; // Will return this
} else {
echo "True";
}
<?php
if ($a > $b) {
echo "a is bigger than b";
$b = $a;
}
?>
$a = true;
if(!$a) {
echo "False"; // Will return this
} else {
echo "True";
}