php if condition example
Example 1: php if
<?php
if ($a > $b) {
echo "a is bigger than b";
$b = $a;
}
?>
Example 2: php if simple
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];
<?php
if ($a > $b) {
echo "a is bigger than b";
$b = $a;
}
?>
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];