quotemeta

(PHP 4, PHP 5, PHP 7, PHP 8)

quotemetaQuota i meta caratteri

Descrizione

quotemeta(string $str): string

Restituisce una versione di str con il carattere backslash (\) davanti ai seguenti caratteri:

. \ + * ? [ ^ ] ( $ )

Nota: Questa funzione è binary-safe (gestisce correttamente i file binari)

Vedere anche addslashes(), htmlentities(), htmlspecialchars(), nl2br() e stripslashes().