2009年11月12日 - [PHP] 去除斷行、空白字元方法. 移除斷行字元: //利用正規表示式將內容的斷行(\r\n)字元去除. preg_replace( "/\s/", "" , $content ); 移除空白字元:.
bjack617.blogspot.com