Re: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Curt Zirzow
* 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

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Robby Russell
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

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Vail, Warren
: [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

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Quanah Gibson-Mount
--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

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Vail, Warren
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 referring to a global constant. Is it not true (no pun intended) that if a variable (or constant) h