[eluser]Brandon Jackson[/eluser]
Let's say you only want a list of the public methods in a class... this code will help by using the Reflection class.
Code:
foreach (get_class_methods($c) as $key => $val)
{
/* Get a reflection object for the class method */
$reflect = new ReflectionMethod($c, $val);
/* For private, use isPrivate(). For protected, use isProtected() */
if($reflect->isPublic())
{
if (!in_array($val,$this->invalid_methods))
{
// Put the methods we care about into an array
$method[$c][] = $val;
}
}
}