I came across a situation where I'm dealing with function namespacing conflicts in PHP. I have two different libraries that I need to include, and they both have functions with the same name. This is causing conflicts and I'm not sure how to handle it.
I've tried using the "use" keyword to specify the namespace for each function, but it seems like only one version of the function is being loaded, and the other is being ignored. This is causing issues in my code because some parts rely on one version of the function, while other parts need the other version.
I've also looked into using aliases with the "as" keyword, but it doesn't seem like a clean solution, especially when dealing with multiple functions with the same name.
So, my question is, how do you handle function namespacing conflicts in PHP? Is there a way to load both versions of the function without any conflicts? Or is there a better approach to dealing with this issue?
I appreciate any help or suggestions you can provide. Thank you!