113 of 410 menu

The stripslashes Function

The stripslashes function removes escaping of characters done by the addslashes function.

Syntax

stripslashes(string $string): string

Example

Let's use our function to remove the escaping of quotes:

<?php echo stripslashes('id=\"eee\"'); ?>

Code execution result:

'id="eee"'

See Also

  • the addslashes function,
    which performs the reverse operation
  • the str_replace function,
    which also performs search and replace
  • the substr_replace function,
    which cuts out part of a string and replaces it with another
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline