stripcslashes() function in PHP


The stripclashes() is used to remove backslashes. It returns the unescaped string.

Syntax

stripclashes(str)

Parameters

  • str − Specify the string to check.

Return

The stripcslashes() function returns the unescaped string.

The following is an example −

Example

Live Demo

<?php
   echo stripcslashes("Naomi \Watts!");
?>

The following is the output −

Output

Naomi Watts!

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 30-Jul-2019

186 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements