Re: how to invoke ReflectionMethod and pass variable by reference as argument?
- From: Egbert Teeselink <skrebbel@xxxxxxxxx>
- Date: Fri, 30 May 2008 14:48:22 -0700 (PDT)
$rc = new ReflectionClass('K2');
$rm = $rc->getMethod('increment');
$rm->invoke($a ,$c);
Weird indeed.
Does it work when using call_user_func, or call_user_func_array maybe?
like call_user_func(array($a, 'increment'), $c) or something. it may
be the reflection lib. or i'm missing something.
.
- Follow-Ups:
- References:
- Prev by Date: Re: following radio & hidden does not work..... help please.
- Next by Date: Re: sessions being destroyed prematurely
- Previous by thread: how to invoke ReflectionMethod and pass variable by reference as argument?
- Next by thread: Re: how to invoke ReflectionMethod and pass variable by reference as argument?
- Index(es):