[ create a new paste ] login | about

Link: http://codepad.org/84UZ1Aq5    [ raw code | output | fork ]

PHP, pasted on Feb 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

class test{
   function func($foo, $bar, $baz){
   }
}

$refMethod = new ReflectionMethod('test',  'func');
$params = $refMethod->getParameters();
echo count($params);


?>


Output:
1
3


Create a new paste based on this one


Comments: