note 35393 added to language.operators
| From: | php-note-NOSPAM-2003 at ryandesign dot de | Date: | Fri, 29 Aug 2003 14:01:15 +0000 |
| Subject: | note 35393 added to language.operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55305@lists.php.net to get a copy of this message | ||
cyrillic at zonnet dot nl is correct, but goodness I find his notation...
isset($foo) or $foo = 20;
...SO much less readable and understandable than the equivalent...
if (!isset($foo)) $foo = 20;
I have arguments with my coworkers about this. :-) Of course in Perl you could write...
$foo = 20 unless isset($foo);
...(if Perl had an isset() function) but I'm not thrilled with that notation either.
----
Manual Page -- http://www.php.net/manual/en/language.operators.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35393
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35393&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35393&report=yes