how to ignore the : in ternary operator when you have only one return in php code example Example: php ternary shorthand $y = $x ? "true" : "false";