diff --git a/pages/The-Basics.md b/pages/The-Basics.md index 7b2e893..6019458 100644 --- a/pages/The-Basics.md +++ b/pages/The-Basics.md @@ -293,12 +293,17 @@ $b = 10; echo ($a) ? ($a == 5) ? 'yay' : 'nay' : ($b == 10) ? 'excessive' : ':('; // excess nesting, sacrificing readability {% endhighlight %} -Ternary operators also have their limitations and cannot be used to 'return' a value. +To 'return' a value with ternary operators use the correct syntax. {% highlight php %}