I have used PHP for a long time. However, I have forgotten what this is called.. Look at the code below..
$boolean = true; $echo = (!$boolean) ? "Boolean is False" : "Boolean is True"; // echo's Boolean is True
Anyone know what that is called?
That is a tertiary operator.
I googled that and I came up with this for a reasonable answer.. Maybe you ment this?
http://codewalkers.com/phpdocs/language.operators.comparison.html
"Ternary Operator"
anyways, thanks for helping me!
Ooops, yeah. Thats it. I dont use it very often but I recall the form. Knew it was ter-something 😉