Changeset 797


Ignore:
Timestamp:
2011-04-26T07:44:42+02:00 (4 years ago)
Author:
moo
Message:

sample code for ?: being used in if ()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/decompilesample.php

    r795 r797  
    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.