source: branches/version-2_13-dev/data/module/Compat/tests/function/array_key_exists.phpt @ 20119

Revision 20119, 407 bytes checked in by nanasess, 15 years ago (diff)

module 以下は svn:keywords を除外

  • Property svn:eol-style set to LF
Line 
1--TEST--
2Function -- array_key_exists
3--SKIPIF--
4<?php if (function_exists('array_key_exists')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('array_key_exists');
9
10$search_array = array("first" => 1, "second" => 4);
11if (array_key_exists("first", $search_array)) {
12   echo "The 'first' element is in the array";
13}
14?>
15--EXPECT--
16The 'first' element is in the array
Note: See TracBrowser for help on using the repository browser.