2016年5月6日 星期五

[php]濾掉詭異的字元

preg_replace('/^[\pZ\pC]+|[\pZ\pC]+$/u', '', $string);