Do I have this right? My PHP book is saying that if I have a function with 6 variables, all coded with defaults. And I want to call the function and only override the 6th default.... I have to supply all six values.
function fake_example ( a=1, b=2, c=3, d=4, e=5, f=7 )
and I wish to call
fake_ example ( ,,,,, 6 )
That ain't going to work? (It isn't cause I know) So this post is 25% complaint, 25% lets fix the next release and introduce the concept of positional parameters and 50% request if any knows an easy way to get way to get around this?
My books says to code so that the one one that needs replaced is first in the list.
Life isn't always that predictable.
any wisdom appreciated.
Chuck