$str = "The quick brown fox jumped over the lazy dog.";
$str = preg_replace('/\s/','-',$str);
echo $str;
更详细的请看原著
摘抄自http://www.5idev.com/p-php_preg_replace.shtml
破罐子互摔
微信扫一扫
$str = "The quick brown fox jumped over the lazy dog.";
$str = preg_replace('/\s/','-',$str);
echo $str;
更详细的请看原著
摘抄自http://www.5idev.com/p-php_preg_replace.shtml
破罐子互摔
相关推荐