Hello guys,
I'm working on a simple class right now to get my head around OOP and i need some help with a function that i'm creating. The function receives various parameters, being some of those optional. For example:
public function Test($req, $alsoreq, $notreq = null, $notreq2 = null, $notreq3 = null) {
// blah blah
}
My question is... how do i call the function, passing the two first parameters and the last one?
For example: Test('req', 'alsoreq', 'notreq3');
Ignoring the notreq2 and notreq?
I tried Test('req', 'alsoreq', '', '', 'notreq3'); but this seems ugly and hackish...