I have a function that returns 1 if its all ok, and if there is any error it returns the error, that I will print.
I'm worried that the function may return some critical information due to an unanticipated error or something, of course I did not put any return with information the user should not see.PHP Code:$do_function = function();
if ($do_function == 1) {
// Its OK
} else {
$errors[] = $do_function;
// Then I will print the errors
}


Reply With Quote






Bookmarks