2008/5/22, Alexey Zakhlestin <[EMAIL PROTECTED]>:
> On Wed, May 21, 2008 at 10:46 PM, LEW21 <[EMAIL PROTECTED]> wrote:
> > Sometimes call time pass by reference is useful, for example when you
> > want to make it possible to omit an param (normally passed by
> > reference) by setting null. With no call time pass by reference,
> > programmers are required to write:
> >
> > $null = null;
> > foo($null);
>
>
> what stops you from declaring:
>
> function someFunc(&$param = null)
> {
> }
>
> it works just fine
And what if this param isn't the last param of this function, and next
params are required?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php