Javatpoint Logo
Javatpoint Logo

PHP stripcslashes() Function

The stripcslashes() is predefine function of PHP. It is used to remove backslashes and clean up data retrieved from a database or from an HTML form. It returns a string with backslashes stripped off.

This function stripcslashes() is important while we need to remove the backslashes.

Syntax:

Parameter Description Required/Optional
String used to specify the string to check required

Example 1

Output:

Hello PHP!

Example 2

Output:

Before using 'stripcslashes()' Function: Hello, we areLearning PHP from javaTpoint.
By using 'stripcslashes()' Function: Hello, we areLearning PHP from javaTpoint.

Reference:

http://php.net/manual/en/function.stripcslashes.php
Next TopicPHP String




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA