note 71855 deleted from ref.array by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: filip at mxd dot biz 

----

a better array_key_set function:

	function array_key_set(&$array, $key=0) {
		if(is_array($array)) {
			if(!array_key_exists($array, $key)) {
				return false;
			}
			reset($array);
			while($current = key($array)) {
				if($current == $key) {
					return true;
				}
				next($array);
			}
		}
		return false;
	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.