PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
protokol
Forum Contributor
Posts: 353 Joined: Fri Jun 21, 2002 7:00 pm
Location: Cleveland, OH
Contact:
Post
by protokol » Sat Jul 20, 2002 12:30 am
<?= $somevar ?> is the exact same thing as <?php echo $somevar ?>
hob_goblin
Forum Regular
Posts: 978 Joined: Sun Apr 28, 2002 9:53 pm
Contact:
Post
by hob_goblin » Sat Jul 20, 2002 1:36 am
from the manual
echo() also has a shortcut syntax, where you can immediately follow the opening tag with an equals sign.
http://www.php.net/echo
gnu2php
Forum Contributor
Posts: 122 Joined: Thu Jul 11, 2002 2:53 am
Post
by gnu2php » Sat Jul 20, 2002 2:01 am
The manual also says:
PHP.net/echo wrote: Note: This short syntax only works with the short_open_tag configuration setting enabled.
In case anyone has a problem using it.