摘要:
今天用phpexcel做导出的时候遇到2个问题,一是eregi函数 在5.3以后的版本 deprecated 查了下翻译 意思是废除了没办法只能preg_match 代替。if(!function_exists('eregi')){ function eregi($pattern,$string,$regs=array()) { return preg_match('/'.$pattern.'/i',$string,$regs); }}第一时间想到的是 用上面的方法重定义下函数,悲剧的是 deprecated了 但php -r "var 阅读全文
posted @ 2011-03-11 12:36
andychia
阅读(443)
评论(0)
推荐(0)
浙公网安备 33010602011771号