FANDOM


Description Edit

stripslashes will return a string that was quoted by addslashes or if the PHP directive magic_quotes_gpc is on without quotes.

Parameters Edit

{{{returns}}} stripslashes (string input)

Parameter Infos Edit

Parameter PHP Version Type
stripslashes 4 or 5 returns string
input 4 or 5 string


Examples Edit

Example 1: Edit

<?php
 echo stripslashes("Is your name O\'reilly?");
?>

Output Edit

Is your name O'reilly?


See also Edit

addslashes, get_magic_quotes_gpc

For more details on this function, visit its entry in the php manual.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.