> Giving each class a different name is usually good enough...
It may get longer...
For example, non-namespace:
class Tony_db
{
const MYSQL='mysql';
//...
}
So, i should use Tony_db::MYSQL to use it.
But if i have namespace.
namespace Tony
{
class db
{
const MYSQL='mysql';
}
}
and then, i can coding:
using namespace Tony;
db::MYSQL