Date: 05/14/01
- Next message: norny <email protected>: "[PHP-DEV] Bug #10825 Updated: mysql_field_name() won't return element 0"
- Previous message: sniper <email protected>: "[PHP-DEV] Bug #10859 Updated: WIll Not send E-Mail"
- Next in thread: Sterling Hughes: "Re: [PHP-DEV] Comparison style"
- Reply: Sterling Hughes: "Re: [PHP-DEV] Comparison style"
- Reply: Brian Moon: "[PHP-DEV] Re: [PEAR-DEV] Comparison style"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I was just perusing some of the PEAR code, and a certain
condition caught my eye:
if ("" == $content)
My habit has always been to write that sort of condition using
the style:
if ($content == "")
(leaving the unknown value on the left side of the comparison
operator)
Is one of these styles preferable to the other, either always or
in certain instances?
-- Jon Parise (jon <email protected>) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: norny <email protected>: "[PHP-DEV] Bug #10825 Updated: mysql_field_name() won't return element 0"
- Previous message: sniper <email protected>: "[PHP-DEV] Bug #10859 Updated: WIll Not send E-Mail"
- Next in thread: Sterling Hughes: "Re: [PHP-DEV] Comparison style"
- Reply: Sterling Hughes: "Re: [PHP-DEV] Comparison style"
- Reply: Brian Moon: "[PHP-DEV] Re: [PEAR-DEV] Comparison style"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

