ID:          41935
 Updated by:  [EMAIL PROTECTED]
 Reported By: noone at nowhere dot com
 Status:      Open
-Bug Type:    Website problem
+Bug Type:    Documentation problem
 PHP Version: Irrelevant
 New Comment:

Reclassified as documentation problem


Previous Comments:
------------------------------------------------------------------------

[2007-07-09 10:49:52] noone at nowhere dot com

Description:
------------
There is an error in "Example 1698. Using the 'e' modifier". Either
single quotes or additional escapes should be used imho:

<?php
preg_replace("/(<\\/?)(\\w+)([^>]*>)/e", 
             "'\\1'.strtoupper('\\2').'\\3'", 
             $html_body);
?> 




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41935&edit=1

Reply via email to