public static function current($latitude, $longtitude, $format = 'json') { $weather = Weather::free($latitude, $longtitude, '2', $format); if ($weather == FALSE) { return false; } else { $weather = json_decode($weather); $current_conditions = $weather->data->current_condition[0]; return $current_conditions; } }