2

Possible Duplicate:
named PHP optional arguments?

Is it possible in PHP to pass parameters directly, for example if I have a function:

function test ($a="",$b="",$c=""){}

is it possible to call the function with only $c parameter, now I am doing this by passing all parameters:

test("","","Hello");

but can I do this like

test($c="Hello");

?

Community
  • 1
  • 1
MilMike
  • 12,571
  • 15
  • 65
  • 82

0 Answers0