Merge pull request #784 from JohnstonCode/patch-1

Using php 7 feature in example
This commit is contained in:
Josh Lockhart
2018-06-20 10:24:04 -04:00
committed by GitHub

View File

@@ -87,7 +87,8 @@ rewritten like this:
{% highlight php %}
<?php
echo isset($foo['bar']) ? $foo['bar'] : '';
//Null Coalescing Operator
echo $foo['bar'] ?? '';
{% endhighlight %}
One instance where error suppression might make sense is where `fopen()` fails to find a file to load. You could check