回答編集履歴
3
誤植
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
echo (is_null($result))
|
38
38
|
|
39
|
-
? "N
|
39
|
+
? "NULL"
|
40
40
|
|
41
41
|
: $result
|
42
42
|
|
2
整形
test
CHANGED
@@ -8,9 +8,7 @@
|
|
8
8
|
|
9
9
|
{
|
10
10
|
|
11
|
-
|
11
|
+
return (!isset($value) || !is_numeric($value) ? false : true;
|
12
|
-
|
13
|
-
return true;
|
14
12
|
|
15
13
|
}
|
16
14
|
|
1
整形
test
CHANGED
@@ -26,11 +26,23 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
|
29
|
+
return ($h * $w) /2;
|
30
|
-
|
31
|
-
return $total;
|
32
30
|
|
33
31
|
}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
$result = triangle($h, $w);
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
echo (is_null($result))
|
40
|
+
|
41
|
+
? "Null"
|
42
|
+
|
43
|
+
: $result
|
44
|
+
|
45
|
+
;
|
34
46
|
|
35
47
|
```
|
36
48
|
|