This article mainly introduces the usage of addcslashes and stripcslashes functions in PHP, and analyzes the techniques related to addcslashes function addition for fixed character escape processing and stripcslashes restoration, for more
: This article mainly introduces the usage analysis of addcslashes and stripcslashes functions in PHP. if you are interested in PHP tutorials, refer to it. This article analyzes the usage of addcslashes and stripcslashes functions in PHP. We will
This article mainly introduces the usage of addcslashes and stripcslashes functions in PHP, and analyzes the techniques related to addcslashes function addition for fixed character escape processing and stripcslashes restoration, for more
This article mainly introduces the usage of addcslashes and stripcslashes functions in PHP, and analyzes the method of addcslashes function to add the escape processing for fixed characters and stripcslashes to restore operation with the example
Stripcslashes quoted a series of Addcslashes ()
Definition and usageThe Stripcslashes () function removes the addcslashes () function that adds a backslash.Grammar
Stripcslashes (String)
Parameters
Description
String
Stripcslashes references a series ()
Definition and usageThis stripcslashes () function deletes the addcslashes () function added by the backslash.Syntax
stripcslashes(string)
Parameters
Description
String
Required
This paper analyzes the usage of addcslashes and stripcslashes functions in PHP. Share to everyone for your reference, specific as follows:
In the English version of a website, after writing and filling in English information, I casually fill out a
Instance
Remove the backslash in front of "world!":
Definition and usage
The Stripcslashes () function deletes a backslash added by the addcslashes () function.
Tip: This function can be used to clean up data retrieved from a database or from an
The following is a brief introduction to the use of these two functions:String Addcslashes (String str,string charlist): The 1th parameter, str, is the original string to be lost, and the 2nd parameter charlist describes which characters in the
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.