Possible Duplicates:
Are PHP short tags acceptable to use?
Reference – What does this symbol mean in PHP?
Hi Guys,
I can’t seem to find any information about the <?= shortcut of php.
Does anyone of you know more about that?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are looking for the PHP ini directive short_open_tag
It enables the support for
<?instead of<?phpFrom the docs:
There has been no announcement whatsoever that support should be discontinued. You can regard
<?=as supported as<?=.There are however some weird preconfigured systems that don’t have it enabled by default.
For example some debian version in early php5 versions.
So to be on the save side you should do
<?phpphp.net also says:
which i would interpret at, you are totally fine as long as you can control your settings.
Documentation is here: http://php.net/manual/en/ini.core.php
and here: http://www.php.net/manual/en/language.basic-syntax.phpmode.php