I have a function with a known number of parameters like
function myFunction($name, $id=1,$salary=1000) {
echo $id;
echo $name;
echo $salary
}
when i call this function
myFunction("name");
it displays
- 1 name 1000
But How I can ignore the id
parameter of this function and want to give 1st and 3rd arguments only?
like
myfunction("name",ignore 2nd parameter and give value of 3rd parameter)
so that it should display
- name 1 given salary