source: branches/version-2_5-dev/data/module/Compat/tests/function/array_intersect_assoc.phpt @ 19792

Revision 19792, 455 bytes checked in by Seasoft, 13 years ago (diff)

#744(PHP4 互換用途ソースを将来的に切り捨てやすい仕組みづくり)

Line 
1--TEST--
2Function -- array_intersect_assoc
3--SKIPIF--
4<?php if (function_exists('array_intersect_assoc')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('array_intersect_assoc');
9
10$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
11$array2 = array("a" => "green", "yellow", "red");
12$result = array_intersect_assoc($array1, $array2);
13print_r($result);
14
15?>
16--EXPECT--
17Array
18(
19    [a] => green
20)
Note: See TracBrowser for help on using the repository browser.