note 71262 added to function.eregi-replace
| From: | dionmoult at gmail dot com | Date: | Mon, 20 Nov 2006 06:58:07 +0000 |
| Subject: | note 71262 added to function.eregi-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119887@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 195.221.21.36
Probable Submitter: 210.19.249.221
----
Manual Page -- http://www.php.net/manual/en/function.eregi-replace.php
Edit -- https://master.php.net/note/edit/71262
Del: integrated -- https://master.php.net/note/delete/71262/integrated
Del: useless -- https://master.php.net/note/delete/71262/useless
Del: bad code -- https://master.php.net/note/delete/71262/bad+code
Del: spam -- https://master.php.net/note/delete/71262/spam
Del: non-english -- https://master.php.net/note/delete/71262/non-english
Del: in docs -- https://master.php.net/note/delete/71262/in+docs
Del: other reasons-- https://master.php.net/note/delete/71262
Reject -- https://master.php.net/note/reject/71262
Search -- https://master.php.net/manage/user-notes.php