Re: Filter based on ctype_print()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Robin Vickery <robinv@xxxxxxxxx>:

On 9/5/05, Rick Emery <rick@xxxxxxxxxxxxxxxxxxx> wrote:

What I really want to do is replace the non-printable character(s) with
printable character(s) (maybe a question mark, or a space), but haven't
been able to find a function that will do it. Maybe something like:

$xmlOutput .= '<remark>';
$xmlOutput .= ctype_print_replace($remarks['Remark'], '');
$xmlOutput .= '</remark>';

$xmlOutput .= preg_replace('/[^[:print:]]/', '?', $remarks['Remark']);

Worked great, thanks!

Rick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux