回答編集履歴
2
修正
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
public function
|
33
|
+
public function sayHi(int $index=null)
|
34
34
|
|
35
35
|
$name = array_key_exists($index,$this->names)? $this->names[$index]:'No Name';
|
36
36
|
|
1
最後手抜きしてしまったので修正。
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
public function s
|
33
|
+
public function get_names(int $index=null)
|
34
34
|
|
35
35
|
$name = array_key_exists($index,$this->names)? $this->names[$index]:'No Name';
|
36
36
|
|