Browse Source

sample code for ?: being used in if ()

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@797 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent
commit
c081bb3801
  1. 12
      decompilesample.php

12
decompilesample.php

@ -409,6 +409,18 @@ $a = $b ?: $d;
$a = ($b ?: $d) + $c;
$a = f1() ?: f2();
if ($b ?: $d) {
echo 'if ($b ?: $d)';
}
if (($b ?: $d) + $c) {
echo 'if (($b ?: $d) + $c)';
}
if (f1() ?: f2()) {
echo 'if (f1() ?: f2())';
}
echo 'goto a';
goto a;

Loading…
Cancel
Save