How to check in php if there fatal errors if function called. Is function callable?
How to check in php if there fatal errors if function called. Is function callable?
You can use try catch to check is there fatal errors
try {
define(Pi, 3);
} catch (Throwable $throwable) {
echo 'Not executed!';
}
Good day