Re: ternary operators?
| From: | Branko Collin | Date: | Thu, 13 Jan 2005 23:01:50 +0000 |
| Subject: | Re: ternary operators? | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365958@lists.php.net to get a copy of this message | ||
On 12 Jan 2005, at 22:16, Sean Coates wrote:
> The ternary operator is mentioned on both the operators page (as you
> already noticed), and the comparison operators page
> (http://php.net/operators.comparison), where it is explained in more
> detail.
>
> I don't think that linking the actual operator tokens in the
> quicksearch is useful (ie, php.net/? is obviously not a useful URL).
> Perhaps we should link php.net/ternary to the
> language.operators.comparison, though.
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?
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.
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.
Many thanks for your replies,
--
branko collin
collin@xs4all.nl