Hi,
I'm getting a very weird error.
I've written a little function to tell me the first Monday in April for any given year.
I want this function to default to checking the current year's April. I tried with the code:
function FirstMonday($FinancialYear=date("Y"))
{
function code
}
and call the function using:
FirstMonday();
but I get the following error:
Parse error: parse error, expecting `')''
If I amend the code to:
function FirstMonday($FinancialYear)
{
function code
}
and call the fuction using:
FirstMonday(date("Y"));
This works fine.
Can anyone tell me what I was doing wrong?
Thanks