$ Search: the search target value, that is, a needle array can specify multiple targets. $ Replace: the replacement value of search. An array can be used to specify multiple replications.
", $ Str); $ str = str_replace (" | _ | "," ", $ str); return trim ($ str );} /********************************** function name: msubstr ($ str, $ start, $ len) function: webpage-converted string parameter $ str: string parameter to be processed $ start: start parameter of the string to be processed $ len: length of the string to be intercepted ******************************** **/function Msubstr ($ str, $ start, $ len) {$ strlen = $ start + $ len; $ tmpstr = ''; for ($ I = $ start; $ I <$ strlen; $ I ++) {if (ord (substr ($ str, $ I, 1)> 0xa0) {$ tmpstr. = substr ($ Str, $ I, 2); $ I ++;} else {$ tmpstr. = substr ($ str, $ I, 1) ;}return $ tmpstr ;} /********************************** function name: mysql_real_escape_string function: Escape special characters in strings used in SQL statements, and take into account the connected current character set. parameter $ str: the processed string ***********************************/ function Mysql_real_escape_string ($ str) {return mysql_real_escape_string ($ str );} /************************************ function name: str_replace function: substring Replacement parameter $ search: Search target value, that is, a needle array can specify multiple targets. $ Replace: the replacement value of search. An array can be used to specify multiple replicas. Parameter $ subject: an array or string to be replaced. That is, haystack. If the subject is an array, the replacement operation will traverse the entire subject, and the return value will also be an array. Number of matching and replacement times **************************/function Str_replace ($ search, $ replace, $ subject) {return str_replace ($ search, $ replace, $ subject) ;}}?>