The UrlEncode () function works by first converting Chinese characters to 16, and then adding an identifier% to each character. The UrlDecode () function, in contrast to the UrlEncode () function, is used to decode an encoded URL string by converting a hexadecimal string to a Chinese character
Stripslashes () function
Instance
To remove a backslash:
<?phpecho stripslashes ("Who\ 's Bill Gates?");? >
Running an instance
Definition and usage
The Stripslashes () function deletes a backslash added by the addslashes () function.
tip: This function can be used to clean up data retrieved from a database or from an HTML form.
Grammar
stripslashes (String)
Parameters |
Description |
String |
Necessary. Specifies the string to check. |
Technical details
return value: |
Returns a string that has a stripped backslash. |
PHP version: |
4 + |
The role of UrlDecode () and UrlEncode () and stripslashes () in PHP