If $xxx isn't defined at all, its default is NULL, so your if statement
should work as is. If $xxx is not defined, then you should get thrown down to
the else. There is a difference between false and NULL.
On Monday 29 October 2001 10:50, John A. Grant wrote:
> I've written several functions w
I've written several functions with optional "string" parameters.
They work fine. But I've never written one that accepts an optional
"bool" parameter and I'm now confused.
I would like to have this:
somefunction("hello");
somefunction("hello",false);
somefunction("hello",true);
func
2 matches
Mail list logo