// Декодируем JSON-ответ в ассоциативный массив $responseArray = json_decode ( $response , true ) ; // Получаем значение "main" из массива $weatherMain = $responseArray [ 'weather' ] [ 0 ] [ 'main' ] ; // Выводим значение "main" echo $weatherMain ;