PHP if
1.Apache start
2.hello3.php
C:\xampp\htdocs
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello</title>
</head>
<body>
<h1>Calculate</h1>
<?php
$number=12;
if($number % 2 == 0){
$msg='odd';
} else {
$msg='even';
}
?>
<p><?= $number . ' is <b> ' . $msg . '</b>'?></p>
</body>
</html>
3.
http://localhost/hello3.php