View Single Post
Old 11-09-2009, 10:36 PM   #4 (permalink)
adamdecaf
The Addict
 
adamdecaf's Avatar
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Quote:
Originally Posted by delayedinsanity View Post
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 <?=.
__________________
My Site
adamdecaf is offline  
Reply With Quote