PHP2012. 11. 29. 12:23

<?
	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 : 탭

\\ : 역슬래시

\$ : 달러 기호

\" : 큰따옴표

Posted by 멜데스