mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Update the Set::merge() documentation.
This commit is contained in:
parent
fce70df6ff
commit
2ddc3873c2
1 changed files with 5 additions and 2 deletions
|
@ -30,9 +30,12 @@ class Set {
|
|||
* This function can be thought of as a hybrid between PHP's array_merge and array_merge_recursive. The difference
|
||||
* to the two is that if an array key contains another array then the function behaves recursive (unlike array_merge)
|
||||
* but does not do if for keys containing strings (unlike array_merge_recursive).
|
||||
* See the unit test for more information.
|
||||
*
|
||||
* Note: This function will work with an unlimited amount of arguments and typecasts non-array parameters into arrays.
|
||||
* Since this method emulates `array_merge`, it will re-order numeric keys. When combined with out of
|
||||
* order numeric keys containing arrays, results can be lossy.
|
||||
*
|
||||
* Note: This function will work with an unlimited amount of arguments and typecasts non-array
|
||||
* parameters into arrays.
|
||||
*
|
||||
* @param array $arr1 Array to be merged
|
||||
* @param array $arr2 Array to merge with
|
||||
|
|
Loading…
Reference in a new issue