getFirstErrors(); $str = []; foreach ($errors as $error) { $str[] = $error; } return implode(';', $str); } }