From 724a5bb9b872c45cf20ecfcd7359cd2095744be6 Mon Sep 17 00:00:00 2001 From: Tom de Bruin Date: Fri, 12 Oct 2012 09:09:21 +0100 Subject: [PATCH] Changed example return values At request of Phil Sturgeon. --- pages/The-Basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/The-Basics.md b/pages/The-Basics.md index 6019458..68d425c 100644 --- a/pages/The-Basics.md +++ b/pages/The-Basics.md @@ -303,7 +303,7 @@ echo ($a == 5) ? return true : return false; // this example will output an e vs. $a = 5; -return ($a == 5) ? true : false; // this example will return true +return ($a == 5) ? 'yay' : 'nope'; // this example will return true {% endhighlight %} * [Ternary operators](http://php.net/manual/en/language.operators.comparison.php)