You are here: Echo versus Question Mark Equals « PHP Programming Language « IT news, forums, messages
Echo versus Question Mark Equals

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация