回答編集履歴
1
use()
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
```php
|
2
2
|
|
3
|
-
array_filter($nums1, function($n) { return in_array($n, $judgenum); });
|
3
|
+
array_filter($nums1, function($n) use($judgenum) { return in_array($n, $judgenum); });
|
4
4
|
|
5
5
|
```
|