11-09-2009, 11:36 PM
|
#4 (permalink)
|
|
The Addict
Join Date: May 2009
Posts: 287
Thanks: 5
|
Quote:
Originally Posted by delayedinsanity
As for short tags, the best answer I could give you is to not worry about them. Whatsoever. They're bad coding practice. In addition they almost got wiped out in PHP 6, though it appears they're keeping them for now, with any luck they should be completely gone a few version releases afterwards.
|
I really wish that PHP 6 would have taken them out, they are horrible practice.
PHP Code:
<a href="<?php echo $link; ?>">Click Here!</a>
// vs..
<a href="<?=$link;?>">Click here</a>
It's harder to read the second and more trouble. I was helping someone learn PHP and they were trying to start every script with either <?=php or <?=.
|
|
|
|