Re: Array Key Test
| From: | Stuart | Date: | Mon, 12 Jan 2004 17:18:35 +0000 |
| Subject: | Re: Array Key Test | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174349@lists.php.net to get a copy of this message | ||
Cameron B. Prince wrote:
How would I go about determining if a specific key exists in an array?http://php.net/isset
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.if (isset($conf['h0pt'])) -- Stuart