Skip to main content

removing characters in a string that does not have printable characters

.

$str = preg_replace('/[[:^print:]]/', '', $str); // should be aA

Comments