[thelist] PHP: Associative Arrays

John Corry webshot at members.evolt.org
Fri Jun 28 16:58:01 CDT 2002

> if (array_key_exists($people, 'Joe') {
>    // you know Joe exists
> }
> http://www.php.net/manual/en/function.array-key-exists.php

Hey...cool, I didn't know about that one!

Another one (that is common to my code is:
if (is_array($people["joe"]))
	// you know Joe exists and is an array

John Corry
Neon Cowboy Design
mail : john at neoncowboy.com
phone : 808.572.8494

More information about the thelist mailing list