PHP stripslashes() Funzione
❮ Riferimento alla stringa PHP
Esempio
Rimuovi la barra rovesciata:
<?php
echo stripslashes("Who\'s Peter Griffin?");
?>
Definizione e utilizzo
La funzione stripslashes() rimuove le barre inverse aggiunte dalla funzione addlashes() .
Suggerimento: questa funzione può essere utilizzata per ripulire i dati recuperati da un database o da un modulo HTML.
Sintassi
stripslashes(string)
Valori dei parametri
Parameter | Description |
---|---|
string | Required. Specifies the string to check |
Dettagli tecnici
Valore di ritorno: | Restituisce una stringa con barre inverse rimosse |
---|---|
Versione PHP: | 4+ |
❮ Riferimento alla stringa PHP