note 40173 rejected from function.ereg-replace by irchtml

From: Date: Tue, 24 Feb 2004 09:00:04 +0000
Subject: note 40173 rejected from function.ereg-replace by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65636@lists.php.net to get a copy of this message
Note Submitter: mt@fr.aisc.com ---- 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

« previous php.notes (#65636) next »