showErrsInConsole(['err1', 'error2', 'error3']);
function showErrsInConsole(array $errors)
{
array_walk($errors, function (&$err) {
$err="echo " . $err;
});
$errors = implode(';', $errors);
$exec = "gnome-terminal -x bash -c '$errors; sleep 1; read -n 1 -p \"press any key to close\"';";
`$exec`;
}
solved How to Print the Errors on Console?