> -----Original Message-----
> From: Matt Schroebel [mailto:[EMAIL PROTECTED]]
> Sent: 29 January 2002 16:33
> And I write those as (true == $PHP_MAIL_FORM) so the parser 
> will catch the missing second equal sign. 
> This won't parse: (true = $PHP_MAIL_FORM)

Why even bother with the inefficient comparison to TRUE (which is bad style, anyway!)? 
 Both the above are exactly equivalent to ($PHP_MAIL_FORM), so your if statement 
should just read

   if ($PHP_MAIL_FORM)

The only reason to do a comparison against TRUE (or FALSE) is if you need to ensure a 
type match as well, using the === or !== operators.



Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to