Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Function -- array_uintersect_assoc
3
--SKIPIF--
4
<?php if (function_exists('array_uintersect_assoc')) { echo 'skip'; } ?>
5
--FILE--
6
<?php
7
require_once 'PHP/Compat.php';
8
PHP_Compat::loadFunction('array_uintersect_assoc');
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_assoc($array1, $array2, 'strcasecmp'));
14
?>
15
--EXPECT--
16
Array
17
(
18
    [a] => green
19
)