1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    $page_title = '메뉴';
    $meat = '돼지고기';
    $vegetable = '숙주나물';
 
    echo <<<MENU
    <html>
    <head><title>$page_title</title></head>
    <ul>
    <li>$meat 바베큐</li>
    <li>저민 $meat
    <li>$meat 조림과 $vegetable
    </ul>
    </body>
    </html>
 
    MENU;
cs





1
2
3
4
5
$preparation = '삶';
 
$meta = '소고기';
 
echo "야채를 곁들인 {$preparation}은 $meta";
cs
결과 : 야채를 곁들인 삶은 소고기


+ Recent posts