Mon Oct 27, 2008 11:43 pm
<html>
<head>
<title>Echo Example</title>
</head>
<body>
<?php
$string1 = "A.<br />\n";
$string2 = "B ";
$string3 = "Line 1
spans multiple lines.
Line3<br />";
echo "Start, ", $string2, $string1;
echo("$string2$string1");
echo("This string $string1");
echo($string2 . $string1);
echo($string3);
echo "Line 1.
lin 2!!<br />";
?>
<?=$string2,$string1?>
<?="output", " codemiles.com!", "<br />", ":-)", "<br />\n" ?>
<?="This string
spans multiple lines.
Even the newlines are output in the document source!<br />"?>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.