![]() |
Common short tags
What are the common PHP short tags? I know of a few such as <?=$str ?>. Actually thats about all I know.
|
Well you got the loop ones:
PHP Code:
|
What ETbyrne is referring to is actually called 'alternative conditional structures' and can be highly useful when writing mixed PHP and HTML pages.
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. |
Quote:
PHP Code:
|
Thanks for the clarification di!
|
Sorry, that is what I meant originally as well. Alternative conditional structures.
|
| All times are GMT. The time now is 09:35 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0