runtime class information

From: Date: Wed, 28 Jul 1999 04:54:13 +0000
Subject: runtime class information
Groups: php.version4 
Request: Send a blank email to php-version4+get-2886@lists.php.net to get a copy of this message
How would I find if a member function exists in an instance of a class at runtime? In php3 I could use isset(), like this: function call_all($func,$arg){ // $this->collection is an array of objects of different types // $func is a function name // $arg is an argument to be passed to $func when called reset($this->collection); for ($i=0;$i<sizeof($this->collection);$i++){ $cur=each($this->collection); $obj=$this->collection[$cur['key']; // only call the function if it is a member function // for the current object in the collection if (isset($obj->$func)){ $retval=$obj->$func($arg); } } } This no longer works... are there any new statements/functions for dealling class runtime information ?? Alan

« previous php.version4 (#2886) next »