Return to Snippet

Revision: 23170
at February 1, 2010 02:52 by teloon


Initial Code
//(\xc2\xa0) is the unicode of chinese space
$new['content'] = preg_replace('/^[(\xc2\xa0)|\s]+/', '', $new['content']); 

//the space after "|" is full-shaped space
re = "[\s| ]+"

Initial URL
http://sandacn.blog.163.com/blog/static/891102009622642066/

Initial Description


Initial Title
remove chinese space

Initial Tags


Initial Language
PHP