<? echo("<<변수 사용하기>><br>"); $dquot = "큰따옴표를 이용한 문자열 표시"; $squot = '작은따옴표를 이용한 문자열 표시'; $int = "123"; $float = "3.1415"; echo($dquot); echo "<br>"; echo($squot); echo "<br>"; echo($int); echo "<br>"; echo($float); echo "<br>"; $sum = $int + $float; $message = "$int + $float = $sum"; echo($message); ?>
---------------------
\n : 줄바꿈
\r : 캐리지 리턴
\t : 탭
\\ : 역슬래시
\$ : 달러 기호
\" : 큰따옴표
'PHP' 카테고리의 다른 글
2-17. 작은따옴표를 이용해 특수문자 출력하기 (0) | 2012.11.29 |
---|---|
2-16. 특수문자 출력하기 (0) | 2012.11.29 |
2-14. 문자열 출력하기 (0) | 2012.11.29 |
2-13. 변수를 이용해 실수값 출력하기 (0) | 2012.11.29 |
2-12. 실수값 출력하기 (0) | 2012.11.29 |