Changeset c081bb3 in git


Ignore:
Timestamp:
2011-04-26T05:44:42Z (9 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
79015d6
Parents:
a33a151
Message:

sample code for ?: being used in if ()

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@797 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • decompilesample.php

    r44db58b rc081bb3  
    410410$a = f1() ?: f2();
    411411
     412if ($b ?: $d) {
     413    echo 'if ($b ?: $d)';
     414}
     415
     416if (($b ?: $d) + $c) {
     417    echo 'if (($b ?: $d) + $c)';
     418}
     419
     420if (f1() ?: f2()) {
     421    echo 'if (f1() ?: f2())';
     422}
     423
    412424echo 'goto a';
    413425goto a;
Note: See TracChangeset for help on using the changeset viewer.