php rernary operator return true code example Example: php ternary shorthand $y = $x ? "true" : "false";