|
Posted by Kimmo Laine on 10/09/06 11:09
I tried to use a class member function as a callback in
preg_replace_callback, but failed. It announces: " Warning:
preg_replace_callback() [function.preg-replace-callback]: requires argument
2, 'myclass::myfunction', to be a valid callback in ..."
I tried both myclass::myfunction and $this->myfunction, neither worked. Is
there really no way of using a class member as a callback, it has to be an
external function? That sucks... :(
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|