English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

PHP stripcslashes() Function Usage and Example

PHP String String Functions Manual

The stripcslashes() function is used to remove the backslashes added by the addcslashes() function.

Syntax

string stripcslashes ( string $str )

Definition and Usage

Used to remove backslashes

Return Value

It returns the unescaped string.

Parameter

Serial NumberParameters and Description
1

str

Used to specify the string to be unescaped

Online Example

Try the following example to remove the backslash before "World!":

<?php
      //Remove the backslash before "World!":
   echo stripcslashes("Hello World!");
?>
Test and see‹/›

Output Result

Hello World!

PHP String String Functions Manual