public static function getPrevKey($key, array $array) {
		$keys = array_keys($array);
		$found_index = array_search($key, $keys);
		if($found_index === false || $found_index === 0)
			return false;
		return $keys[$found_index - 1];
	}
public static function getPrevKey($key, array $array) {
		$keys = array_keys($array);
		$found_index = array_search($key, $keys);
		if($found_index === false || $found_index === 0)
			return false;
		return $keys[$found_index - 1];
	}
public static function getPrevKey ( $ key , array $ array ) { $ keys = array_keys ( $ array ) ; $ found_index = array_search ( $ key , $ keys ) ; if ( $ found_index === false || $ found_index === 0 ) return false ; return $ keys [ $ found_index - 1 ] ; }
Returns the previous key from an array

@param mixed $key
@param array $array
@return boolean|mixed previous key or false if no previous key is available
Returns the previous key from an array