PHP stripcslashes and Stripslashes () tutorial _php Tutorial

Source: Internet
Author: User
Tags html form
Stripcslashes quoted a series of Addcslashes ()

Definition and usage
The Stripcslashes () function removes the addcslashes () function that adds a backslash.

Grammar

Stripcslashes (String)
Parameters
Description
String Required Options


Hint and description Hint: This feature can be used to clean up a string from a database. For example

<?phpecho stripcslashes ("Hello, my name is Kai Jim.");? >
Output.
Hello, my name is Kai Jim.
OK, let's take a look at the <strong>stripcslashes</strong> function definition and usage as well as an example tutorial.

Define and use the Stripslashes () function to remove the backslash increment and the addslashes () function. Grammar

Stripslashes (String)
Parameters
Description
String Must have hints and instructions


Tip: This feature can be used to clean up data retrieved from a database or from an HTML form. For example

<?phpecho stripslashes ("Who's Kai Jim?");? >
Output.
Who ' s Kai Jim?

Techarticlestripcslashes references a series of addcslashes () functions that are added with the addcslashes () definition and the use of the stripcslashes () function to remove backslashes. Syntax Stripcslashes (string) ...

  • 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.