Using <?= instead of echo in PHP (Laravel 5)?
This question already has an answer here:
The <?= $var; ?>
<?= $var; ?>
is a short tag and is available for some time. In MVC's it is quite common to use and it is not bad, but not always the right choice. Some servers doesn't allow short tags at all. You can change this settings by enabling it in .htaccess, but until you try, you are not certain it will work.
<IfModule mod_php5.c>
php_value short_open_tag 1
</IfModule>
Most of the times, you won't have to do anything to use short tags.
链接地址: http://www.djcxy.com/p/59338.html上一篇: 在PHP中,<?=运算符是什么意思?