PHP 코드관련
문자열 내부에 변수 넣기
땀모
2019. 7. 24. 16:54
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 |