Re: Calling Functions without all the arguments
| From: | Chris Aitken | Date: | Fri, 13 Apr 2001 14:53:31 +0000 |
| Subject: | Re: Calling Functions without all the arguments | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48454@lists.php.net to get a copy of this message | ||
On Fri, 13 Apr 2001, Rasmus Lerdorf wrote:
>If a function has not been defined to take optional arguments, then you
>*must* provide these arguments when you call the function. The fact that
>previous versions of PHP incorrectly let you do this was at best an
>undocumented misfeature, but more likely a bug.
>
Yeah, I kinda figured it would have been some sort of oversite with the
beta version we were running. I pretty much started learning PHP using
this install of PHP4 so I guess I picked up some bad habits learning along
the way becase the install of PHP never stopped me, so I never knew there
was a problem and never investigated my code.
Chris