On 3 Nov 2004 16:38:39 -, Matthew Weier O'Phinney
<[EMAIL PROTECTED]> wrote:
> * Daniel Schierbeck <[EMAIL PROTECTED]>:
>
> > function foobar ($a, $b, $c = null)
> > {
> > if (isset($c)) {
> > echo 'The third argument was set';
> > }
> > }
>
> That check should be for 'is_n
Thanks for all the help guys, working great now.
Giles Roadnight
http://giles.roadnight.name
-Original Message-
From: Daniel Schierbeck [mailto:[EMAIL PROTECTED]
Sent: 03 November 2004 18:37
To: [EMAIL PROTECTED]
Subject: [PHP] Re: blank function parameters
Matthew Weier O'Ph
Matthew Weier O'Phinney wrote:
* Daniel Schierbeck <[EMAIL PROTECTED]>:
Giles Roadnight wrote:
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 03 November 2004 16:39, Matthew Weier O'Phinney wrote:
> * Daniel Schierbeck <[EMAIL PROTECTED]>:
> > Giles Roadnight wrote:
> > > If I defined a function with 4 parameters but o
* Daniel Schierbeck <[EMAIL PROTECTED]>:
> Giles Roadnight wrote:
> > If I defined a function with 4 parameters but only pass 3 I get an
> > error. Is there anyway around this?
> >
> > I want to be able to set the missing parameter to a default value if it
> > is not passed which works ok but How
Giles Roadnight wrote:
Hello
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
Thanks
Giles Ro
Giles Roadnight wrote:
Hello
If I defined a function with 4 parameters but only pass 3 I get an
error. Is there anyway around this?
I want to be able to set the missing parameter to a default value if it
is not passed which works ok but How do I get rid of the error message?
Thanks
Giles Ro
* Giles Roadnight <[EMAIL PROTECTED]>:
> If I defined a function with 4 parameters but only pass 3 I get an
> error. Is there anyway around this?
>
> I want to be able to set the missing parameter to a default value if it
> is not passed which works ok but How do I get rid of the error message?
8 matches
Mail list logo