You'd use namespaces with your classes for the same reason that you'd use directories with your files: because giving each thing some long and complicated name just so that they all stay unique is a pain.
Practically speaking, if you use underscores in your class names then you're already using namespaces.
Me neither. I think it might have something to do with large projects that involve many scripts and many variables and I'm thinking namespace is a way of avoiding collisions with names.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.