array_walk() and class methods

From: Date: Thu, 13 Dec 2001 00:39:06 +0000
Subject: array_walk() and class methods
Groups: php.general 
Request: Send a blank email to php-general+get-78202@lists.php.net to get a copy of this message
i have class instance snagfu, of class snafu, with a method, fubar() i have an array, $tarfu, and want to run it through array_walk(), array_walk($tarfu, $snagfu->fubar) seems to be logical, if it's possible. this obviously doesn't work. How do i use a class method with array walk? or is it even possible? if it's not possible, why not? seems to be as if it should be possible... thanks. Jeff Levy Software Design Meta-Craft Creations

« previous php.general (#78202) next »