This is an extension question of PHP pass in $this to function outside class
And I believe this is what I\'m looking for but it\'s in python not php: Programmaticall
Only way is with reflection by going to http://us3.php.net/manual/en/book.reflection.php
class foo { function bar ($arg1, $arg2) { // ... } } $method = new ReflectionMethod('foo', 'bar'); $num = $method->getNumberOfParameters();