The Ternary Operator in PHP Friday, May 29, 2015 Teklinks php The ternary operator allows us to simplify some PHP conditional statements. We'll see how it can be used, with test-driven development and refactoring, to simplify code like: Full article Email This BlogThis! Share to X Share to Facebook