Most of us know the following syntax:
function funcName($param='value'){
echo $param;
}
funcName();
Result: "value"
We were wondering how to pass default values for the 'not last' paramater? I know this terminology is way off, but a simple example would be:
function funcName($param1='value1',$param2='value2'){
echo $param1."\n";
echo $param2."\n";
}
How do we accomplsh the following:
funcName(---default value of param1---,'non default');
Result:
value1
not default
Hope this makes sense, we want to basically assume default values for the paramaters which are not last.
Thanks.
null
default value not provide a solution? Am just wondering why someone objected enough to mark it down without commenting why – Lucretialucretius