@@ -631,7 +631,7 @@ <h4 id="method_filter_prefixed" class="method">filter_prefixed($array, $prefix,
631
631
632
632
< article >
633
633
< h4 id ="method_remove_prefixed " class ="method "> remove_prefixed($array, $prefix)</ h4 >
634
- < p > < strong > remove_prefixed</ strong > メソッドは、与えられたプレフィックスにマッチするキーを持つ値を配列から取り除きます。</ td >
634
+ < p > < strong > remove_prefixed</ strong > メソッドは、与えられたプレフィックスにマッチするキーを持つ値を配列から取り除きます。</ p >
635
635
< table class ="method ">
636
636
< tbody >
637
637
< tr >
@@ -1968,7 +1968,7 @@ <h4 id="method_multisort" class="method">multisort($array, $conditions, $ignore_
1968
1968
1969
1969
< article >
1970
1970
< h4 id ="method_in_array_recursive " class ="method "> in_array_recursive($needle, $haystack, $strict = false)</ h4 >
1971
- < p < strong > in_array_recursive</ strong > メソッドは値が配列に含まれているかどうか再帰的にチェックします。</ p >
1971
+ < p > < strong > in_array_recursive</ strong > メソッドは値が配列に含まれているかどうか再帰的にチェックします。</ p >
1972
1972
< table class ="method ">
1973
1973
< tbody >
1974
1974
< tr >
@@ -2197,9 +2197,9 @@ <h4 id="method_merge_assoc" class="method">merge_assoc($array, ...)</h4>
2197
2197
</ table >
2198
2198
</ article >
2199
2199
< article >
2200
- < h4 id ="method_search " class ="method "> search($array, $value, $default = null, $recursive = true, $delimiter = '.')</ h4 >
2200
+ < h4 id ="method_search " class ="method "> search($array, $value, $default = null, $recursive = true, $delimiter = '.', $strict = false )</ h4 >
2201
2201
< p > < strong > search</ strong > メソッドは、与えられた値によって配列を検索し、対応するキーまたはデフォルト値を返します。< br />
2202
- - $recursive が true の場合は、区切り文字として $delimiter を使った合成キーを用います。</ p >
2202
+ - $recursive が true の場合は、区切り文字として $delimiter を使った合成キーを用います。</ p >
2203
2203
< table class ="method ">
2204
2204
< tbody >
2205
2205
< tr >
@@ -2246,6 +2246,12 @@ <h4 id="method_search" class="method">search($array, $value, $default = null, $r
2246
2246
< td > < pre class ="php "> < code > '.'</ code > </ pre > </ td >
2247
2247
< td > $recursive が true の場合の区切り文字</ td >
2248
2248
</ tr >
2249
+ < tr >
2250
+ < th > < kbd > $strict</ kbd > </ th >
2251
+ < td > < em > bool</ em > </ td >
2252
+ < td > < pre class ="php "> < code > false</ code > </ pre > </ td >
2253
+ < td > Do a strict comparison on key values</ td >
2254
+ </ tr >
2249
2255
</ table >
2250
2256
</ td >
2251
2257
</ tr >
@@ -2283,7 +2289,6 @@ <h4 id="method_search" class="method">search($array, $value, $default = null, $r
2283
2289
)
2284
2290
)
2285
2291
),
2286
- );
2287
2292
);
2288
2293
2289
2294
echo Arr::search($arr, 1);
@@ -2298,6 +2303,9 @@ <h4 id="method_search" class="method">search($array, $value, $default = null, $r
2298
2303
echo Arr::search($arr, 4, null, true);
2299
2304
// three.a
2300
2305
2306
+ var_dump(Arr::search($arr, '4', null, true, '.', true));
2307
+ // NULL
2308
+
2301
2309
echo Arr::search($arr, 'deep', null, true);
2302
2310
// 1.1.3.0
2303
2311
</ code > </ pre >
0 commit comments