What does a special set of tags <?= and ?> do in PHP?
rpgwebsolutions
0
Newbie Poster
Recommended Answers
Jump to PostI did a search and found an article that explains it (see link below).
<?= is a shortcut for echo. It only works if PHP's short open tags is turned on. This isn't much of a shortcut (especially since you also need the closing tag for a total of 5 …
Jump to PostTo elaborate on that Below are three examples of doing the same thing
<?="Hello World!"; ?> <? echo "Hello World!"; ?> <?php echo "Hello World!"; ?>
Now as you should know they all do the same thing providing php is configured correctly. However as of Php 5.3.0 …
All 5 Replies
chrishea
182
Nearly a Posting Virtuoso
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
alex4700
0
Newbie Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.