“PHP remove caracteres não imprimíveis” Respostas de código

PHP REGEX caracteres não imprimíveis

myprompt> php -a
Interactive shell

php > $string = "‘Hello,’ she said.";
php > $result = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $string);
php > echo $result;
Hello, she said.
Eager Echidna

PHP REGEX caracteres não imprimíveis

$result = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $string);
Eager Echidna

PHP remove caracteres não imprimíveis

$string = preg_replace('/[\x00-\x1F\x7F\xA0]/u', '', $string);
Ricardo Aponte

Respostas semelhantes a “PHP remove caracteres não imprimíveis”

Perguntas semelhantes a “PHP remove caracteres não imprimíveis”

Mais respostas relacionadas para “PHP remove caracteres não imprimíveis” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código