note 24085 added to function.eregi
| From: | sean dot lathey at rotadata dot com | Date: | Tue, 06 Aug 2002 10:46:51 +0000 |
| Subject: | note 24085 added to function.eregi | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34387@lists.php.net to get a copy of this message | ||
I'm trying to put a html newline character after each character in a string. The code worked
well until we updated the PHP to 4.2.1 and now I get a REG_EMPTY warning and it doesn't work :-
$keywords = ereg_replace("","<br>", $keywords);
For example ...
Fred
would become in html
F
r
e
d
However, I now get nothing as I'm not allowed to set the incoming character field to
"".
Can anyone help and tell me what I need to do sort this out ?
Cheers
Séan
--
http://www.php.net/manual/en/function.eregi.php
http://master.php.net/manage/user-notes.php?action=edit+24085
http://master.php.net/manage/user-notes.php?action=delete+24085
http://master.php.net/manage/user-notes.php?action=reject+24085