update : 2015.11.03
php.shukuma.com검색:
|
array_udiff_uassoc(PHP 5, PHP 7) array_udiff_uassoc — Computes the difference of arrays with additional index check, compares data and indexes by a callback function 설명
array array_udiff_uassoc
( array
$array1
, array $array2
[, array $...
], callable $value_compare_func
, callable $key_compare_func
)Computes the difference of arrays with additional index check, compares data and indexes by a callback function. Note that the keys are used in the comparison unlike array_diff() and array_udiff(). 인수
반환값
Returns an array containing all the values from
예제
Example #1 array_udiff_uassoc() example
<?php 위 예제의 출력: Array ( [0.1] => cr Object ( [priv_member:private] => 9 ) [0.5] => cr Object ( [priv_member:private] => 12 ) [0] => cr Object ( [priv_member:private] => 23 ) ) In our example above you see the "1" => new cr(4) pair is present in both arrays and thus it is not in the output from the function. Keep in mind that you have to supply 2 callback functions. 주의
참고
|