note 71262 deleted from function.eregi-replace by tularis
| From: | tularis@php.net | Date: | Mon, 20 Nov 2006 07:05:10 +0000 |
| Subject: | note 71262 deleted from function.eregi-replace by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119888@lists.php.net to get a copy of this message | ||
Note Submitter: dionmoult at gmail dot com
Reason: useless
----
Friendly reminder to users of eregi_replace, i found this rather annoying thing when coding a bbcode
function.
$text = "my text which is going to be [b]bold[/b]";
$text = eregi_replace('(\[b\])', '<b>', $text);
There is nothing wrong with that, however, when copied from a browser or some other notepad, many
people get an error concerning something like WARNING: eregi_replace (function) or something, and
this can easily be fixed by typing out the code manually instead of copying it from the browser.