Flash Actionscript has this:
// If condition is true, set foo to "Hello World!", else set foo to "Bye World!"
var foo = (condition == true) ? "Hello World!" : "Bye World!";
What is the syntax to perform the same inline statement in PHP?
EDIT - Apparently it's the same syntax. My code was off, so it wasn't showing the expected results =P
// If condition is true, set foo to "Hello World!", else set foo to "Bye World!"
var foo = (condition == true) ? "Hello World!" : "Bye World!";
What is the syntax to perform the same inline statement in PHP?
EDIT - Apparently it's the same syntax. My code was off, so it wasn't showing the expected results =P