OK, so it was "C" code on a PHP list, isn't there a PHP developers list that
would work better?

Warren Vail

-----Original Message-----
From: Quanah Gibson-Mount [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 4:56 PM
To: Vail, Warren; [EMAIL PROTECTED]
Subject: RE: [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 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) has not been defined, that assigning the 
> contents of that variable (or value of the constant) will return a 
> false (i.e. a 1)?

This is inside the C source code for PHP.  C does not prefix variables with 
a $.

The DEFAULT_VALUE was simply shorthand for what I'm setting it to, and is 
not representative of an actual value, and that bit doesn't particularly 
matter, since it was never getting executed (although it was for a global 
constant from a header file).

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to