note 13795 deleted from language.variables.php by torben
| From: | torben@php.net | Date: | Wed, 04 Jul 2001 20:07:45 +0000 |
| Subject: | note 13795 deleted from language.variables.php by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14993@lists.php.net to get a copy of this message | ||
I have found a new way of printing variables that is not covered in the manual and I have never
heard this being talked about. It's much like an ASP feature.
Instead of doing this:
<?php
$variable = "test";
echo("$variable");
?>
You can do
<?php
$variable = "test";
?>
<?= $variable ?>
This is especially valuable if you are mixing the PHP with a lot of HTML and closing PHP tags a lot.