File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / array / key_exists_variation1.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:03 2012 UTC (12 years, 6 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Test function key_exists() by calling it with its expected arguments
--CREDITS--
Francesco Fullone ff@ideato.it
#PHPTestFest Cesena Italia on 2009-06-20
--FILE--
<?php
echo "*** test key_exists() by calling it with its expected arguments ***\n";
$a = array('bar' => 1, 'foo' => array('bar' => 2, 'baz' => 3));  
var_dump(key_exists('baz', $a));
var_dump(key_exists('baz', $a['foo']));
--EXPECTF--
*** test key_exists() by calling it with its expected arguments ***
bool(false)
bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>