以下两行给予警告,过时的功能已被弃用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