Using php 7 feature in example

This commit is contained in:
Christopher
2018-06-01 16:01:11 +01:00
committed by GitHub
parent 26cfda1b07
commit a1f8e83a3f

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