php*.php code example
Example 1: php if less than number
<?php
if ($a > $b)
echo "a is bigger than b";
?>
Example 2: php ?:
// Example usage for: Ternary Operator
$action = $_POST['action'] ?: 'default';
// The above is identical to this if/else statement
if (empty($_POST['action'])) {
$action = 'default';
} else {
$action = $_POST['action'];
}