public $d; function aaa($a, $b, $c=NULL){ if($c=="" || $c==NULL){ $c=$d; } if($c=="" || $c==NULL){ return false; } . . . }