Ternary Operator

$variable = condition ? if true : if false

An example is shown below:

  $style = isset($_GET['style']) ? $_GET['style'] : 'default';

This checks whether variable $_GET['style'] is set. If it is variable $style is given this value. Alternatively, variable $style is given the value 'default'.