回答編集履歴
1
スペルミスの修正
test
CHANGED
@@ -12,13 +12,13 @@
|
|
12
12
|
|
13
13
|
*/
|
14
14
|
|
15
|
-
function array_multi_key_exists_recr
|
15
|
+
function array_multi_key_exists_recursive($needles, $haystack)
|
16
16
|
|
17
17
|
{
|
18
18
|
|
19
19
|
foreach ($needles as $needle) {
|
20
20
|
|
21
|
-
if (array_key_exists_recr
|
21
|
+
if (array_key_exists_recursive($needle, $haystack)) {
|
22
22
|
|
23
23
|
return true;
|
24
24
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
*/
|
42
42
|
|
43
|
-
function array_key_exists_recr
|
43
|
+
function array_key_exists_recursive($needle, $haystack)
|
44
44
|
|
45
45
|
{
|
46
46
|
|
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
if (is_array($child)
|
60
60
|
|
61
|
-
&& array_key_exists_recr
|
61
|
+
&& array_key_exists_recursive($needle, $child)
|
62
62
|
|
63
63
|
) {
|
64
64
|
|