if(isset($response['errors'])){ foreach($response['errors'] as $key=>$error){ echo $error[0] . '<br>'; }}