explode 换行“\r\n”无效
PHP 使用 explode 函数将文本里的换行内容转换成数组,在本地测试时使用 \r\n 没问题,上传服务器后失效。 $txt = file_get_contents("mydatas.txt"); $arrs = explode(...
那些因为折腾所留下的痕迹
PHP 使用 explode 函数将文本里的换行内容转换成数组,在本地测试时使用 \r\n 没问题,上传服务器后失效。 $txt = file_get_contents("mydatas.txt"); $arrs = explode(...
/** 过滤中英文标点符号 */ function filter_punctuation($text){ $text=urlencode($text); $text=preg_replace("/(%E3%80%82|...