Current Location: Home> Function Categories> stripcslashes

stripcslashes

Anti-reference a string escaped using addcslashes()
Name:stripcslashes
Category:String
Programming Language:php
One-line Description:Removes the backslashes added by the addcslashes() function.

Example

Remove the backslash in front of "World!":

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">stripslashes</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Hello \World!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Try it yourself

Similar Functions