Quantcast
Channel: php
Viewing all articles
Browse latest Browse all 10

PHP: How to remove non-printable characters from strings

$
0
0

PHP: How to remove non-printable characters from strings

PHP FAQ: How do I remove all non-printable characters from a string in PHP?

I don’t know of any built-in PHP functions to remove all non-printable characters from a string, so the solution is to use the preg_replace function with an appropriate regular expression.


Viewing all articles
Browse latest Browse all 10

Trending Articles