PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
something that should have been obvious, but I just realized recently is that it's called the ternary operator because it's the only operator that works on three expressions at once...
So, to extend that to feyd's example...
echo expression1?expression2:expression3 is analogous to if(expression1) echo expression2; else echo expression3;