NL2BR ();/\ n to
Addslashes (); Stripslashes ();//Escape special characters when working on a database
Chop ();//Remove the right space of the string
Trim ();//Remove all spaces in the string
LTrim ();//Remove the left space of the string
Htmlspecialchars ();//convert ' $ ', ' ' ', ' < ', ' > ' for the corresponding HTML entity
Htmlentities ();//Convert all HTML tags to the corresponding HTML entities
Array explode (string separator, string str);//Split string
String implode (string separator, array arr);//Connection string
Strtoupper (); Strtolower ();//Convert case
Ucfirst ();//convert only the first character to uppercase
Ucwords ();//Convert the first letter of each words to uppercase
The above describes the JS intercept string a few useful PHP string filtering, conversion function code, including the JS intercept string aspects of the content, I hope the PHP tutorial interested in a friend helpful.