Skip to content

Commit

Permalink
[Basic]Ternary operators inform minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ftwbzhao committed Nov 16, 2015
1 parent be731ad commit cbba996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/The-Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ Another example is the snippet below which will return true if ($a != 3 AND $b !
return ($a != 3 && $b != 4) || $c == 5;
{% endhighlight %}
Since PHP 5.3, it is possible to leave out the middle part of the ternary operator.
Expression "expr1 ?: expr3" returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.
* [Ternary operators](http://php.net/language.operators.comparison)
## Variable declarations
Expand Down

0 comments on commit cbba996

Please sign in to comment.