Let me start by saying "Can of Worms!"
At 20:07 30/01/2001 -0800, Joe Stump wrote:
>BUT you can't do this:
>
> function foo($var=date("Y-m-d"))
> {
>
>
> }
>
>Why? This would be a kick ass little trick!
The question is: when do you resolves something like this?
Is it at "compile time" or
> BUT you can't do this:
>
> function foo($var=date("Y-m-d"))
> {
>
>
> }
But, you can do
function foo($var='defaultvaluethatwillneverhappen')
{
if ($var == 'defaultvaluethatwillneverhappen')
{ $var = date("Y-m-d"); }
}
> Why? This would be a kick ass little trick!
Mmmm, well ...
2 matches
Mail list logo