Skip to content

Commit 9f37e2f

Browse files
committed
本家変更分をmerge
2 parents 2c1cb86 + ad15586 commit 9f37e2f

File tree

15 files changed

+1265
-37
lines changed

15 files changed

+1265
-37
lines changed

assets/js/combined.js

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/arr.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ <h4 id="method_filter_prefixed" class="method">filter_prefixed($array, $prefix,
631631

632632
<article>
633633
<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>
635635
<table class="method">
636636
<tbody>
637637
<tr>
@@ -1968,7 +1968,7 @@ <h4 id="method_multisort" class="method">multisort($array, $conditions, $ignore_
19681968

19691969
<article>
19701970
<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>
19721972
<table class="method">
19731973
<tbody>
19741974
<tr>
@@ -2197,9 +2197,9 @@ <h4 id="method_merge_assoc" class="method">merge_assoc($array, ...)</h4>
21972197
</table>
21982198
</article>
21992199
<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>
22012201
<p><strong>search</strong> メソッドは、与えられた値によって配列を検索し、対応するキーまたはデフォルト値を返します。<br />
2202-
- $recursive が true の場合は、区切り文字として $delimiter を使った合成キーを用います。</p>
2202+
- $recursive が true の場合は、区切り文字として $delimiter を使った合成キーを用います。</p>
22032203
<table class="method">
22042204
<tbody>
22052205
<tr>
@@ -2246,6 +2246,12 @@ <h4 id="method_search" class="method">search($array, $value, $default = null, $r
22462246
<td><pre class="php"><code>'.'</code></pre></td>
22472247
<td>$recursive が true の場合の区切り文字</td>
22482248
</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>
22492255
</table>
22502256
</td>
22512257
</tr>
@@ -2283,7 +2289,6 @@ <h4 id="method_search" class="method">search($array, $value, $default = null, $r
22832289
)
22842290
)
22852291
),
2286-
);
22872292
);
22882293

22892294
echo Arr::search($arr, 1);
@@ -2298,6 +2303,9 @@ <h4 id="method_search" class="method">search($array, $value, $default = null, $r
22982303
echo Arr::search($arr, 4, null, true);
22992304
// three.a
23002305

2306+
var_dump(Arr::search($arr, '4', null, true, '.', true));
2307+
// NULL
2308+
23012309
echo Arr::search($arr, 'deep', null, true);
23022310
// 1.1.3.0
23032311
</code></pre>

0 commit comments

Comments
 (0)