> What's the best way of finding out if a specific array key is in an array?
> I have an associative array which *may* look like 
> (car =>saab, house => mansion, countyW=> A) but can equally well look like
> 
> (boat => daycruiser, house => flat, county => B).
> 
> I want to find out if the key "car" is in the array and do something if it
 try something like

if (in_array("keyb",array_keys(array("key"=>"a","keyb"=>"b"))))) { 
... 
}

michael

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to