Re: [PHP] Re: blank function parameters

2004-11-03 Thread Jordi Canals
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

RE: [PHP] Re: blank function parameters

2004-11-03 Thread Giles Roadnight
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

[PHP] Re: blank function parameters

2004-11-03 Thread Daniel Schierbeck
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

RE: [PHP] Re: blank function parameters

2004-11-03 Thread Ford, Mike
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

[PHP] Re: blank function parameters

2004-11-03 Thread Matthew Weier O'Phinney
* 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

[PHP] Re: blank function parameters

2004-11-03 Thread Daniel Schierbeck
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

[PHP] Re: blank function parameters

2004-11-03 Thread Al
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

[PHP] Re: blank function parameters

2004-11-03 Thread Matthew Weier O'Phinney
* 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?