Computer >> Computer tutorials >  >> Programming >> PHP

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

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

The following is the output −

Output

Naomi Watts!