The role of UrlDecode () and UrlEncode () and stripslashes () in PHP

Source: Internet
Author: User
Tags html form urlencode

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.