Re: function parameters
| From: | (Richard Lynch) | Date: | Fri, 07 Jul 2000 23:44:52 +0000 |
| Subject: | Re: function parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5478@lists.php.net to get a copy of this message | ||
In article <8F6963F70logemannmorelogsde@198.186.203.51>,
logenews1@morelogs.de (Marc Logemann) wrote:
> Hi,
>
> was there a change in function parameter passing between php4b4 and
> latest 4.01pl2?
>
> We coded some functions a little bit dirty in the following way:
>
> function seeIt($one, $two, $three)
> {}
>
> seeIt(1,2);
> seeIt(1,2,3);
I think it's a matter of your error_reporting setting...
You could also use:
function seeIt($one, $two, $three = '')
{}
and that would give a default for $three, so no error message should come out.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)