> call_user_func() treats everything as a static method and will not work.
While the variable function might work, could you clarify what you mean by 'treats everything as a static method'? I just ran this:<?php class Foobar { private $schmoo = 9; function setSchmoo( $var ) { $this->schmoo = $var; } function getSchmoo( ) { return $this->schmoo; } function setCallbackSchmoo( $var ) { call_user_func( array( $this, 'setSchmoo' ), $var ); } } $foo= new Foobar; var_dump( $foo->getSchmoo( ) ); $foo->setCallbackSchmoo( 20 ); var_dump( $foo->getSchmoo( ) ); ?> And got this: int(9) int(20) Which is precisely what I'd expect. -- realm3 web applications [realm3.com] freelance consulting, application development (423) 506-0349 _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php