Changeset 758 for trunk/decompilesample.php
- Timestamp:
- 04/17/2011 10:23:57 AM (2 years ago)
- Files:
-
- 1 modified
-
trunk/decompilesample.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/decompilesample.php
r753 r758 186 186 $a = $b ^ $c; 187 187 $a = ~$b; 188 $a = -$b; 189 $a = +$b; 188 190 $a = $b >> $c; 189 191 $a = $b >> $c; … … 249 251 250 252 foreach ($array as $key => $value) { 251 echo $key . ' = ' . $value . "\n"; 252 continue; 253 foreach ($array as $key => $value) { 254 echo $key . ' = ' . $value . "\n"; 255 break 2; 256 continue; 257 } 253 258 } 254 259 … … 279 284 echo __LINE__; 280 285 281 //* >= PHP 5.3286 //* 282 287 echo 'PHP 5.3+ code testing'; 283 288 const CONST_VALUE = 1; … … 309 314 $greet('PHP'); 310 315 $total = 0; 316 $tax = 1; 311 317 $callback = function ($quantity, $product) use ($tax, &$total) { 318 static $static = array(1); 319 $tax = 'tax'; 312 320 $pricePerItem = constant('PRICE_' . strtoupper($product)); 313 321 $total += $pricePerItem * $quantity * ($tax + 1);

