Hello Niklas,

Wednesday, January 31, 2001, 7:02:49 PM, you wrote:
NS> 
$tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"\\1\"",$this->dataToBeParsed);

NS> where I want \\1 to be fed into urlencode()  I was thinking somewhere along the 
lines

NS> $func=&urlencode;

It won't work. You can not reference a function. But you can call a
variable with the function name value.
$func = 'urlencode'
$func($str) here will do the same as urlencode($str).

-- 
Best regards,
Max A. Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia
 



-- 
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]

Reply via email to