Home >Backend Development >PHP Tutorial >PHP stripcslashes and stripslashes() tutorial_PHP tutorial

PHP stripcslashes and stripslashes() tutorial_PHP tutorial

PHP中文网
PHP中文网Original
2016-07-20 11:00:282561browse

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)
		参数
                说明
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.");
?>
输出.
Hello, my name is Kai Jim.
好了下面我们来看看<strong>stripcslashes</strong>函数定义与用法以及实例教程吧.

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

stripslashes(string)
		参数
                说明
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?");
?>
输出.
Who's Kai Jim?

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

Statement:
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