Posted by kvnsmnsn on 08/06/07 20:05
I'm taking a look at a piece of PHP code that begins:
<html>
<head>
<title>
<?php
$doc_title = 'Business Registration';
echo "$doc_title\n";
?>
</title>
</head>
<body>
<h1>
<?= $doc_title ?>
</h1>
...
What's the difference here between the <echo "$doc_title\n"> statement
and the <?= $doc_title ?> statement? Are they synonyms for each
other, or are there differences that I don't see?
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
Navigation:
[Reply to this message]
|