2016-08-27 38 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