Array Key Test
| From: | Cameron B. Prince | Date: | Mon, 12 Jan 2004 17:09:23 +0000 |
| Subject: | Array Key Test | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-174347@lists.php.net to get a copy of this message | ||
Hi,
How would I go about determining if a specific key exists in an array?
I want to see if $conf['hOpt'] is defined. is_array only works at the $conf
level.
I tried count(array_keys($conf, 'hOpt')), but always get 0.
What am I doing wrong here?
Thanks,
Cameron