Obviously PHP got confused with your data types. I'll bet that $basedate had
been set to "5". Try this instead:

GetNextDate("4", "2003-03", 5);

Now I bet $frequency is 5 and $basedate is ""



----- Original Message -----
From: "Liam Gibbs" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 4:43 PM
Subject: Re: [PHP] Default setting garbage


> <<Good question.  Are you certain your not misspelling "frequency" when
you
> check it or try to look at it?  Sorry if that sounds insulting.. just
trying
> to search for the simplest explaination.  : < >>
>
> No, no. Not insulting at all. That's often my problem. But not in this
case.
> I even went to the 'trouble' of copying and pasting $frequency wherever I
> needed.
>
>
> Original problem:
> > Why is it that when I send call this function:
> > function GetNextDate($whichfriday, $month = "", $frequency = 1,
$basedate
> =
> > "")
> >
> > with this line:
> > GetNextDate("4", "2003-03", "5");
> >
> > that $frequency ends up ""? Whether I set it myself when I call the
> > function, or I leave it blank and let the function set it itself, it
ends
> up
> > with nothing in it. empty() returns 1, while isset() returns nothing on
> > this.
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to