<?=‘在PHP中是什么意思?<?php
$a=1;?><?=$a;?>什么<?=到底是什么意思?
3 回答
万千封印
TA贡献1891条经验 获得超3个赞
echo
Array( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN (because it is optional (ignored)) [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ))
$tokens = token_get_all('<?=$a;?>');print_r($tokens);foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL;}
- 3 回答
- 0 关注
- 490 浏览
添加回答
举报
0/150
提交
取消