Initial commit: apps.prometeysev.ru
This commit is contained in:
commit
96ccabcd8b
6561 files changed
+1270349
No files matched your search
+34
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
$ten =10 * 2;
|
||||
$ten= -10 * 2;
|
||||
$ten = 10/-2;
|
||||
$bool = true& true;
|
||||
$bool = true &true;
|
||||
$bool = true&true;
|
||||
|
||||
$foo = -1;
|
||||
|
||||
switch ($foo) {
|
||||
case -1:
|
||||
break;
|
||||
case 'negative':
|
||||
return -1;
|
||||
}
|
||||
$bar = isset($foo) ? -2 : 0;
|
||||
$foo = isset($bar) ? 0 : -2;
|
||||
$ten = 10 * 2;
|
||||
$ten = -10 * 2;
|
||||
$ten = 10 / -2;
|
||||
$ten = -10 / 2;
|
||||
$ten = -10 + 2;
|
||||
$ten = 10 + -2;
|
||||
$ten = -10 - 2;
|
||||
$ten = 10 - -2;
|
||||
$dec = -0.001;
|
||||
$dec = -1;
|
||||
$bool = true & true;
|
||||
|
||||
$arr = [-1];
|
||||
$refArr = [&$foo];
|
||||
$refArr = [$bar, &$foo];
|
||||
Reference in new issue
Block a user