Csgs

Can I Use PHP Short Tags With Minimal Issues?

Asked by Csgs 2 years ago php tag


Rommel Castro A
0
 
Why ??? This tags will be deprecated in PHP 6
start using normal tags <?php ?>

by Rommel Castro A 2 years ago

Devone
0
 
They're definitely not recommended because it'll be "hell" if you ever decide to move your code from one server to the other where short tags are not supported and they can't be enabled. If you're looking to share your scripts, then you should use the full syntax. It'll save you lots of headaches.

Even though <? may be easier than <?php it would be a pain if you have to a bulk find and replace on all of the short tags. Just use full syntax, get into the habit of it and you'll be okay.

by Devone 2 years ago

Answer this question

Can I Use PHP Short Tags With Minimal Issues?

0 errors found:

 
0