RE: [PHP] preg_replace with /e modifier

2003-02-24 Thread John W. Holmes
;, $player); So a value such as $player = 'Bas^#ket ^?Ball Pla^:yer'; will produce: Basket Ball Player Which is much better HTML output than you had before. Enjoy. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

[PHP] preg_replace with /e modifier

2003-02-24 Thread aw2001
I cant find a way to properly escape the special characters for php code evaluation (iam sure its something simple) Can some one point this out? [errors generated] Parse error: parse error, unexpected ']' Fatal error: Failed evaluating code: $color[!] [function containing error] function HTMLfrom