I hope you are doing well. I have a query regarding the `getMessage()` method in PHP. I have recently come across this method while working on a project, and I am a bit confused about its usage.
Could someone please explain what exactly the `getMessage()` method does in PHP? I have read the PHP documentation, but I would appreciate it if someone could provide me with a practical example to understand it better.
Additionally, if you have any insights or best practices regarding the usage of the `getMessage()` method or any related information, please feel free to share it.
Thank you in advance for your help!