Quote:
Originally Posted by khortez
Oh, and whats the syntax for ?
|
?: is a ternary operator (meaning that it is an operator that takes 3 arguments). By itself, the question mark is not a valid operator.
e.g.
PHP Code:
temp.result = SOME_CONDITION ? temp.a : temp.b;
is equivalent to
PHP Code:
if (SOME_CONDITION) {
temp.result = temp.a;
} else {
temp.result = temp.b;
}