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