Re: ternary operators?

From: Date: Fri, 14 Jan 2005 05:50:17 +0000
Subject: Re: ternary operators?
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969365968@lists.php.net to get a copy of this message
> From what I understood, "ternary operator" is the name of the class > of operators, it is not the name of the specific ?: operator. Does ?: > even have a name? The ?: operator IS the ternary operator. > I knew that I was looking for an operator, which narrowed my search > down a bit. However, other users may have more problems. Does the PHP > manual have an index? I saw the token index > (http://www.php.net/manual/en/tokens.php), but the ?: operator is not > in there. Even if it were, I doubt many people would look there. Of course the manual has an index... http://www.php.net/manual/en/ > The reason why it is important IMHO that the ?: operator can be found > in the manual is because people come across it in source code (I saw > it in the menu code of the Mambo CMS) and will want to know what it > does. It's an operator, so start here: http://www.php.net/manual/en/language.operators.php It's used for comparing, so click "comparison": http://www.php.net/manual/en/language.operators.comparison.php Aidan

« previous php.doc (#969365968) next »