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:

function snafu($arg) {
  global $x;
  call_user_method("sicballs", $x, $arg);
}

obviously, I want to call the method direcly, without writing this
function, snafu()...

anyone know?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to