QDB: Quote #300642
About / Latest / Random / Queue / Prefs / Donate / Submit Quote / Search

This quote has been fermenting for 15 years and has been voted on 24 times.
Based on preliminary voting, this quote has a 45.6% chance of being approved.

#300642* (?/24) ⚐Flag
<echosystm> $var = ($var2 == '') ? "string" : $OBJ->meth();
<echosystm> ive never seen this () ? : stuff
<oorza> !+ternary
<php-bot> [ternary] Like many other languages, PHP has a ternary operator (?:). It serves as a compact if/else syntax. See php.net/manual/en/language.operators.comparison.php
<oorza> echosystm: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<echosystm> thanks
<Anti-X> i always think trinary
<Anti-X> for some reason
<Anti-X> yeah i'm retarded
<Anti-X> i think in base 3
About / Latest / Random / Queue / Prefs / Donate / Submit Quote / Search
14,883 quotes approved; 8,695 fermenting; karma: 189.4827