第一種辦法:short_open_tag = On要在PHP.INI裏打開這個,默認是OFF
第二種辦法是:
1: php中要先$php_name=..... 2: 模板中要{$php_name}或者輸出PHP變量。(說白了,就是替換)