The name of the function |
Interpretation |
Introduced |
Htmlspecialchars |
Converts to HTML format with, single double quotes, greater than and less than |
& Turn & "Turn into " ' Turn into & #039; < turn < > Turn > |
Htmlentities () |
All characters are converted to HTML format |
In addition to the above Htmlspecialchars characters, also include double-byte characters to display the encoding and so on. |
Addslashes |
Single double quotes, backslash and null plus backslash escape |
The changed characters include single quotation marks ('), double quotes ("), backslash backslash (\), and null character nulls. |
Stripslashes |
Remove backslash characters |
Remove the backslash character from the string. If you have two consecutive backslashes, remove one and leave one. If there is only one backslash, remove it directly. |
Quotemeta |
Add Reference symbol |
Contains the string. \\ + * ? [ ^ ] ($) Precede the character with the backslash "\" symbol. |
NL2BR () |
Convert newline characters to <br> |
|
Strip_tags |
Remove HTML and PHP tags |
Remove any HTML tags and PHP tags from the string, including marking the contents between the blocking. Note If there are errors in the string HTML and PHP tags, an error is returned. |
Mysql_real_escape_string |
Escape a special character in a SQL string |
The escape \x00 \ r \ n space \ ' "\X1A is effective for multibyte character processing. Mysql_real_escape_string will judge the character set, and mysql_escape_string is not to be considered. |
Base64_decode |
Base64 decoding |
Decoding data encoded using MIME base64 |
Base64_encode |
Base64 Code |
Using MIME base64 to encode data |
Rawurldecode |
URL decoding |
Decodes an encoded URL string |
Rawurlencode |
URL encoding |
Encode URLs according to RFC 1738 |
UrlDecode |
URL decoding |
Decodes an encoded URL string |
UrlEncode |
URL encoding |
Coded URL string |
Turn from: http://www.cnblogs.com/siqi/p/4117421.html