以下兩行給予警告,過時的功能已被棄用ereg_replace()和eregi()
if (eregi($patt,$v,$res))
Deprecated: Function eregi() is deprecated in /classes/xtpl.php on line 50
和
$copy=ereg_replace("\{".$v."\}","$var",$copy);
Deprecated: Function ereg_replace() is deprecated in /classes/xtpl.php on line 25
我有嘗試以下方式使用preg_match()
,但未能解決問題
$copy=preg_match("\{".$v."\}","$var",$copy);
if (preg_match($patt,$v,$res))
請給點意見
個
,即時得到空白頁 – mack 2012-04-07 06:26:41