I am new with php.
I am trying to run function if fatal error is occurred while trying to run another function like that
try
{
something
}
catch()
{
if error try another thing
}
I searched about this problem and i found these threads
Handle fatal errors in PHP using register_shutdown_function()
How do I catch a PHP Fatal Error
But i didn't get how to run another function if error occurred
Hope i explained my problem well enough
Thanks in advance