note 40173 added to function.ereg-replace
| From: | mt at fr dot aisc dot com | Date: | Tue, 24 Feb 2004 08:59:43 +0000 |
| Subject: | note 40173 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65634@lists.php.net to get a copy of this message | ||
Hi,
This might be a noob question or the way I try to do it is wrong...
How can I actually apply a function to the original string (\\0)?
I'd like to do something like this:
$text = ereg_replace('#poll[0-9]#', '<TR><TD><INPUT type=radio
name='.substr(\\0,5,1).'>', $text);
Regards,
Michael
----
Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40173
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40173&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40173&report=yes
Search -- http://master.php.net/manage/user-notes.php