Return to Snippet

Revision: 14489
at June 5, 2009 07:53 by iloveitaly


Initial Code
function array_keys_exist($keyArray, $array) {
	foreach($keyArray as $key) {
		if(!array_key_exists($key, $array))
			return false;
	}
	
	return true;
}

Initial URL

                                

Initial Description
like array_key_exists but accepts an array of key values to check

Initial Title
array_keys_exist

Initial Tags
php, list, array

Initial Language
PHP