Implementing callbacks to class member functions
| From: | Amit Sharma | Date: | Tue, 10 Aug 2004 22:25:08 +0000 |
| Subject: | Implementing callbacks to class member functions | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1111@lists.php.net to get a copy of this message | ||
Hi,
I need some help implementing callback to a member function of a class.
I have succesfully used calls like
call_user_function_ex( EG(function_table), NULL, func_name, &retval,1,args,0,NULL TSRMLS CC)
where func_name is a function in php script.
What I would like to do is call function func1() in code below.
for e.g
<?php
class xyz {
function func1() {
}
}
?>
I would appreciate any tips.
Thanks for reading my query :).
Amit