note 67429 deleted from language.types.boolean by bobby

From: Date: Thu, 28 Sep 2006 15:01:04 +0000
Subject: note 67429 deleted from language.types.boolean by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117778@lists.php.net to get a copy of this message
Note Submitter: jasper at jtey dot com ---- A correction to my previous note below, with regards to the following code snippet: <?php // lower case vowel check (incorrect) $c = "u"; $isVowel = $c == "a"||"e"||"i"||"o"||"u"; ?> The portion containing '$c == "a"||"e"||"i"||"o"||"u"' should be '$c == "a"|| $c == "e"|| $c == "i"|| $c == "o"|| $c == "u"' instead. The correct code is therefore: <?php // lower case vowel check (corrected) $c = "u"; $isVowel = $c == "a"|| $c == "e"|| $c == "i"|| $c == "o"|| $c == "u"; ?>

« previous php.notes (#117778) next »