2016-08-27 39 views
0

目前,我与boonex海豚项目 项目soruce代码许多PHP文件里工作开始我也发现,在许多语句也用另一种说法像<?= $start ?>我们可以用<? insted的<?php用于启动php文件,如果不是什么用途<?与<code><?</code>代替<code><?php</code>在PHP开始

<td valign="top" align="justify"><?= $str ?></td>

+0

这家名为PHP的短标记..research对于它,你会知道它的使用 – rahul

+0

有作为PHP的一个文档这样的事情。开始阅读。无论如何,你无法在PHP中开发。 – arkascha

回答

0
"<?" : Short tags (you have to allow it from your server php.ini) 
"<?php" : this represents php starting point. 
"<?=" : it is just to show the output 
example : 

<?php $test= 'abc';?> 
<?=$test?> 
its output is abc