Problem Statement
What is the purpose of the finally block in PHP exceptions?
Explanation
The finally block always runs after try-catch, even if an exception is thrown. It's often used to close files or database connections.
Code Solution
SolutionRead Only
try { } catch(Exception $e){ } finally { echo 'Done'; }