quotemeta
PHP Manual
PHP Manual»String Funzioni»quotemeta

quotemeta

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

quotemetaQuota i meta caratteri

Descrizione

function 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().

To Top