| Revision 20119,
505 bytes
checked in by nanasess, 15 years ago
(diff) |
|
module 以下は svn:keywords を除外
|
-
Property svn:eol-style set to
LF
|
| Line | |
|---|
| 1 | --TEST-- |
|---|
| 2 | Function -- array_uintersect_uassoc |
|---|
| 3 | --SKIPIF-- |
|---|
| 4 | <?php if (function_exists('array_uintersect_uassoc')) { echo 'skip'; } ?> |
|---|
| 5 | --FILE-- |
|---|
| 6 | <?php |
|---|
| 7 | require_once 'PHP/Compat.php'; |
|---|
| 8 | PHP_Compat::loadFunction('array_uintersect_uassoc'); |
|---|
| 9 | |
|---|
| 10 | $array1 = array('a' => 'green', 'b' => 'brown', 'c' => 'blue', 'red'); |
|---|
| 11 | $array2 = array('a' => 'GREEN', 'B' => 'brown', 'yellow', 'red'); |
|---|
| 12 | |
|---|
| 13 | print_r(array_uintersect_uassoc($array1, $array2, 'strcasecmp', 'strcasecmp')); |
|---|
| 14 | ?> |
|---|
| 15 | --EXPECT-- |
|---|
| 16 | Array |
|---|
| 17 | ( |
|---|
| 18 | [a] => green |
|---|
| 19 | [b] => brown |
|---|
| 20 | ) |
|---|
Note: See
TracBrowser
for help on using the repository browser.