Hi all. I was wondering, can a reference be a function as well? Reason is, I've got to
do a little manipulating. I want to do a
$tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this->dataToBeParsed);
where I want \\1 to be fed into urlencode() I was thinking somewhere along the lines
$func=&urlencode;
$tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"$func(\\1)\"",$this->dataToBeParsed);
Cheers
Niklas Saers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]