Php – Ternary Operators
We have previously examined the if-elseif-else conditional statements. We know that these statements provide branching ability according to the conditions. While using these statements in single and simple situations it may become a trivial task. Php provides an alternative way for simple usage. This is called ternary operators. Syntax Syntax of ternary operator is like below. … Read more