I hope you're all doing well. I've been working on a PHP project and stumbled upon the `getNamespaces()` function. I'm currently not quite sure about its purpose and how to use it in my code.
I have a basic understanding of PHP, but I'm still relatively new to namespaces. I've heard that namespaces can help with organizing code and avoiding naming conflicts.
Could someone please explain to me what the `getNamespaces()` function does in PHP? I would also appreciate if you could provide a simple example to help me better understand its usage in practice.
Thanks a lot in advance for your help!