<?php class A{ function B($x , $y=null , $z=null) { } } $m = new ReflectionMethod('a','b'); $p = $m->getParameters(); var_dump($p[0]->isOptionnal() ? $p->getDefaultValue(): 'no');
You have javascript disabled. You will not be able to edit any code.