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