* Thus wrote Quanah Gibson-Mount:
> Right now, I'm tweaking a function that has a bunch of optional parameters.
> I would like to be able to set a default value for the very last one if it
> is not passed in. This essentially looks like:
>
>
> if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_C
On Wed, 2004-10-27 at 16:56 -0700, Quanah Gibson-Mount wrote:
>
> --On Wednesday, October 27, 2004 4:53 PM -0700 "Vail, Warren"
> <[EMAIL PROTECTED]> wrote:
>
> > I notice that none of your variables use the PHP convention of $ preceding
> > the variable name, I also do not see you defining a va
: [PHP] Default value if parameter is not passed in
--On Wednesday, October 27, 2004 4:53 PM -0700 "Vail, Warren"
<[EMAIL PROTECTED]> wrote:
> I notice that none of your variables use the PHP convention of $
> preceding the variable name, I also do not see you defining a val
--On Wednesday, October 27, 2004 4:53 PM -0700 "Vail, Warren"
<[EMAIL PROTECTED]> wrote:
I notice that none of your variables use the PHP convention of $ preceding
the variable name, I also do not see you defining a value for
DEFAULT_VALUE, which by the upper case convention seems to be referrin
PROTECTED]
Sent: Wednesday, October 27, 2004 4:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Default value if parameter is not passed in
Right now, I'm tweaking a function that has a bunch of optional parameters.
I would like to be able to set a default value for the very last one if it
is not p
Right now, I'm tweaking a function that has a bunch of optional parameters.
I would like to be able to set a default value for the very last one if it
is not passed in. This essentially looks like:
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ssl", &link, &arg1,
&arg1_len, &arg2, &a
6 matches
Mail list logo