Search This Blog

Tuesday, July 26, 2016

PHP : Short format of starting and ending scope

To use short format of  starting and ending scope in PHP like <? echo "Hello"; ?>
we have to change the paarmeter
short_open_tag=On

from /etc/php.ini file.

If we use short_open_tag=Off, we have to use  <?php  echo "Hello"; ?> .


No comments:

Post a Comment