getMessage(); } } // output response header('Content-Type: text/plain'); if(empty($errors)) { //no errors we're all gooood echo 'good'; } else { echo implode(', ', $errors); }