NYCPHP Meetup

NYPHP.org

[nycphp-talk] readfile make single and double quotes odd characters.

Chris Shiflett shiflett at php.net
Mon Mar 29 11:12:56 EST 2004


--- Daniel Convissor <danielc at analysisandsolutions.com> wrote:
> $Data = preg_replace('/[\x07\x95]/', '-', $Data);
> $Data = preg_replace('/\x85/', '...', $Data);
> $Data = preg_replace('/[\x91\x92]/', '\'', $Data);
> $Data = preg_replace('/[\x93\x94]/', '&quot;', $Data);

Very nice, Dan. Do you have this published somewhere?

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming Fall 2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/



More information about the talk mailing list