Home » PHP stripcslashes() function

PHP stripcslashes() function

by Online Tutorials Library

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 TutorAspire .  By using 'stripcslashes()' Function: Hello, we areLearning PHP from TutorAspire .  

Reference:

http://php.net/manual/en/function.stripcslashes.php

Next TopicPHP String

You may also like