note 18171 deleted from function.ereg-replace by irc-html
| From: | irc-html@php.net | Date: | Wed, 16 Jan 2002 16:26:22 +0000 |
| Subject: | note 18171 deleted from function.ereg-replace by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24910@lists.php.net to get a copy of this message | ||
if you want to (ereg_)replace any entities, for example "_" (underscore) to
(unbreakable space), and then send it via FORM you should use this:
ereg_replace("_", "&"."nbsp;", $txt)
Simple
ereg_replace("_", " ", $txt)
does not work (it is automaticaly replaced to real nbsp sign) while parsing.