PHP stripcslashes and stripslashes() tutorial_PHP tutorial

PHP中文网
Release: 2016-07-20 11:00:28
Original
2505 people have browsed it

stripcslashes refers to a series of definitions and usage associated with addcslashes()


The stripcslashes() function removes the backslashes added by the addcslashes() function.

Syntax

stripcslashes(string)
Copy after login
		参数
Copy after login
Copy after login
                说明
string 必选项
               Description
string Required option


Tips and instructions Tip: This function can be used to clean and recycle a string from the database. For example

<?php
echo stripcslashes("Hello, my name is Kai Jim.");
?>
Copy after login
输出.
Copy after login
Copy after login
Hello, my name is Kai Jim.
Copy after login
好了下面我们来看看<strong>stripcslashes</strong>函数定义与用法以及实例教程吧.
Copy after login

Definition and Usage The stripslashes() function function removes the backslash added and addslashes() function. Syntax

stripslashes(string)
Copy after login
		参数
Copy after login
Copy after login
                说明
string 必须有提示和说明
              Description
string Must have prompts and instructions


Tip: This function can be used to clean the data retrieved from the database or from the HTML form. For example,

<?php
echo stripslashes("Who&#39;s Kai Jim?");
?>
Copy after login
输出.
Copy after login
Copy after login
Who's Kai Jim?
Copy after login

TechArticlestripcslashes refers to a series with addcslashes() definition and usage. The stripcslashes() function removes backslashes and adds the addcslashes() function. Syntax stripcslashes(string)...

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!