Re: [PHP] Array pointer to a function

2008-04-07 Thread Robert Cummings
On Tue, 2008-04-08 at 14:00 +1000, hce wrote: > Hi, > > Is it possible for an array to point a function: > > Asignmanet > > $ArrayPointer = $this->MyFunction; > > Invoke: > > $ArraryPointer(); No, you can't do what you've done above. What you can do is... &$this, 'method' => 'MyFunction' )

Re: [PHP] Array pointer to a function

2008-04-07 Thread Nathan Nobbe
On Tue, Apr 8, 2008 at 12:00 AM, hce <[EMAIL PROTECTED]> wrote: > Hi, > > Is it possible for an array to point a function: > > Asignmanet > > $ArrayPointer = $this->MyFunction; > > Invoke: > > $ArraryPointer(); i would recommend you investigate variable functions 1. http://www.php.net/manual/e