Good point. Would not have seen it that way.
Thanks for the tip. Jim Lucas ----- Original Message ----- From: "Roger B.A. Klorese" <[EMAIL PROTECTED]> To: "'Jim Lucas'" <[EMAIL PROTECTED]>; "'Curt Zirzow'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 11:03 AM Subject: RE: [PHP] Correct Coding > > Could you explain a little better why this would make things better? > > > > I don't understand how this would improve things. > > > > > Concerning the $Task == "Add", I'd like to make a comment. It can > > > be a wise decision to compare your variables with strings like: > > > > > > if ("Add" == $Task) > > > > > > This can help preventing typo's like: > > > > > > if ($Task = "Add") > > $Task = "Add" (typo'd for $Task == "Add") would assign the value, > clearly not your intent. > > "Add" = $Task would be an illegal assignment to a constant, so your > error would be detected. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php