NYCPHP Meetup

NYPHP.org

[nycphp-talk] RE: Basic Security Question

Chris Shiflett shiflett at php.net
Wed Jul 14 19:25:43 EDT 2004


--- Chris Bielanski <Cbielanski at inta.org> wrote:
> <?
> preg_replace("/two or three sophisticated/i","two or three years ago
> were sophisticated", $my_prev_post);
> ?>

This is a good example of when a str_replace() would be better. :-)

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