phpexcel无法导出的解决方法


<pre>

set_time_limit(0);

ini_set("memory_limit","512M");

</pre>

//去除符号 有些特别的符号 没办法导出来的

<pre>

function match_chinese($chars,$encoding='utf8')

{

$pattern =($encoding=='utf8')?'/[\x{4e00}-\x{9fa5}a-zA-Z0-9]/u':'/[\x80-\xFF]/';

preg_match_all($pattern,$chars,$result);

$temp =join('',$result[0]);

return $temp;

}

</pre>