I'm relatively new to PHP and I'm currently working on a project where I need to define namespaces. I've heard that namespaces can help me organize my code and avoid naming conflicts, so I'm interested in learning more about how to define them.
Could someone please explain to me how I can define a namespace in PHP? I would really appreciate it if you could break it down for me step by step and provide some examples to illustrate the concept.
Thanks in advance for your help!