• 코드:
​x
 
1
<!DOCTYPE html>
2
<html lang="ko">
3
​
4
<head>
5
    <meta charset="UTF-8">
6
    <title>PHP Operators</title>
7
</head>
8
​
9
<body>
10
​
11
<?php
12
    $num_01 = 15;
13
    $num_02 = 8;
14
    $result = ($num_01 > $num_02) ? $num_01 : $num_02;
15
    
16
    echo "둘 중에 더 큰수는 {$result}입니다.";
17
?>
18
​
19
</body>
20
​
21
</html>