Your problem lies in these lines
Return $realday;
Return $month;
Return $year;
and
Datereturn();
A function can only return one value - that value can be an array (see
later)
To use the returned value, you need to assign it to something (or use it
directly)
So, change your return to
Turn error_reporting to:
error_reporting (E_ERROR | E_WARNING | E_PARSE);
// that is the function to mess in the code, you can also set it within
php.ini
then fix your function:
It cannot have more then one return (sure it can, but will break the
execution on the first-come basis).
If you
2 matches
Mail list logo