Re: Friday morning brain farts....
| From: | tedd | Date: | Mon, 13 Aug 2007 15:19:06 +0000 |
| Subject: | Re: Friday morning brain farts.... | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260769@lists.php.net to get a copy of this message | ||
At 12:10 PM +0200 8/13/07, Tijnema wrote:
On 8/13/07, tedd <tedd@sperling.com> wrote: But, if I see this:Could be for most of you, but that would still be a stumbling block for me. However, I can always find a way that works. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comif(!isset($argv[1],$argv[2],$argv[3]))) My first thought is "Is this OR or AND"? And my second thought is "If this is OR, then what's AND?" Being dyslexic I'm easily confused that way (seriously, that's the reason I never use an else-if). Cheers, teddWell, actually, if(!isset($argv[1],$argv[2],$argv[3]))) is AND. As it is the same as this: if( ! ( isset($argv[1]) && isset($argv[2]) && isset($argv[3]) ) ) Which most of us write if (!isset($argv[1]) || !isset($argv[2]) || !isset($argv[3])) All three have the same result ;)