The server space provided by the general Space quotient default PHP directive MAGIC_QUOTES_GPC is on, that is, open. You can then use the stripslashes () function to remove the auto-added backslash. The usage is: for example, the variable containing
The server space provided by the general Space quotient default PHP directive MAGIC_QUOTES_GPC is on, that is, open. You can then use the stripslashes () function to remove the auto-added backslash. The usage is: for example, the variable containing
Forward slash (/), also known as the left slash "/";The backslash "\".
What is the difference between a forward slash and a backslash? The following is a summary:
DOS path:C: \ windows \ setting .. this is the backslash followed by the file
character preceded by backslash, including single quote, double quote, backslash PHP Tutorial code
function D_addslashes ($string, $force = 0) {
if (! $globals [' MAGIC_QUOTES_GPC '] | | $force) {
if (Is_array ($string)) {
foreach ($string as
Transferred from CSDN, the original sticker address http://blog.csdn.net/zlwzlwzlw/article/details/7768313/Recently encountered a small problem in the project, tangled half a day.What is the difference between using a slash/and a backslash \ in a
What is Magic Quotes
When turned on, all ' (single quotes), "(double quotes), \ (backslash), and NULL characters are automatically added with a backslash to escape. This is exactly the same as the addslashes () function.
A total of three magic
UNIX uses a diagonal bar/As a path delimiter, and Web apps are most recently used on UNIX systems, so all network addresses currently use a slash/delimiter.Windows is marked with the use of a diagonal bar/As a parameter of the DOS command prompt,
PHP functions: Stripslashes ()
Remove the backslash, function prototype string stripslashes (String $str), return a string after escaping the backslash (\ ' convert to ', etc.).
In the official PHP Web site, it is mentioned to return a string
./src/this writes the SRC folder in the current directory;
.. /src/this to indicate that the current directory in the previous level of the directory in the SRC folder;/src/this to indicate that the project root directory (can only disk root
Today, I saw an interesting question in the question and answer area and moved directly to the following: (Http://www.oschina.net/question/2268249_218189#tags_nav) The regular expressions that appear to be explicitly entered are different, but 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.