update : 2015.11.03
php.shukuma.com검색:
|
array_diff_uassoc(PHP 5, PHP 7) array_diff_uassoc — Computes the difference of arrays with additional index check which is performed by a user supplied callback function 설명
array array_diff_uassoc
( array
$array1
, array $array2
[, array $...
], callable $key_compare_func
)
Compares Unlike array_diff_assoc() an user supplied callback function is used for the indices comparison, not internal function. 인수
반환값
Returns an array containing all the entries from
예제
Example #1 array_diff_uassoc() example The "a" => "green" pair is present in both arrays and thus it is not in the output from the function. Unlike this, the pair 0 => "red" is in the output because in the second argument "red" has key which is 1.
<?php 위 예제의 출력: Array ( [b] => brown [c] => blue [0] => red ) The equality of 2 indices is checked by the user supplied callback function. 주의
참고
|