Php carriage return and space replacement functions. This article introduces some special character replacement in php Development. if you need it, you can take a look. Function name: ReplaceSpacialChar ($ C_char) function: special character replacement function parameter This article introduces some special character replacement in php Development. if you need it, you can check it out.
// Function name: ReplaceSpacialChar ($ C_char)
// For usage: special character replacement function
// Parameter: $ C_char (string to be replaced)
// Return value: string
// Standby note: This function has a problem and needs to be tested before it can be used.
// Configure //-----------------------------------------------------------------------------------
The code is as follows: |
|
Function ReplaceSpecialChar ($ C_char)
{ $ C_char = HTMLSpecialChars ($ C_char); // Convert Special characters into HTML format. $ C_char = nl2br ($ C_char); // replace the carriage return $ C_char = str_replace ("", "", $ C_char); // replace the space Return $ C_char; } |
Bytes. // Function name: ReplaceSpacialChar ($ C_char) // used for special characters to replace functions // parameters...