Re: [PHP] array_walk() + class methods

2001-12-22 Thread Jeff Levy
: Thursday, December 13, 2001 1:17 PM Subject: [PHP] array_walk() + > class methods > > > | I'd like to call a class method with array_walk(). Is this possible? | > | class widget { > | function sicballs($arg){ > | print $arg; > | } > | } &g

Re: [PHP] array_walk() + class methods

2001-12-21 Thread Papp Gyozo
array_walk($ar, array(&$object, 'methodname')); - Original Message - From: "Jeff Levy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 1:17 PM Subject: [PHP] array_walk() + class methods | I'd like to

[PHP] array_walk() + class methods

2001-12-19 Thread Jeff Levy
I'd like to call a class method with array_walk(). Is this possible? class widget { function sicballs($arg){ print $arg; } } $x = new widget(); $ar = array('my','values'); array_walk($ar, ???) ... the only way I've been able to get this (simplified) code to work the way I want it is