getErrors(); foreach ($errors as $key => $value) { $v = $value[0]; $error = $v; break; } return $error; } }