"Fix name to \PDO" warning from NetBeans. What does that do?

I'm using NetBeans, and I know that the '\' is supposed to denote a namespace. I know what namespaces are, but I fail to understand what its significance is in here. Is NetBeans assuming I might be silly enough to create an object named PDO under a different namespace?
elepilAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
It's not "silly" to have different namespaces with identical names in their scope -- that's part of the abstraction process.  Check the links here.  For most PHP users this is rather "new territory."  This is related to your other question on namespaces.
http://php.net/manual/en/language.namespaces.basics.php
http://php.net/manual/en/language.namespaces.faq.php
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
elepilAuthor Commented:
Ray,

What I meant by "silly" was a developer creating a class named PDO in a different namespace when every PHP developer should already know PDO is a prevalently used class name. It's not like there is a shortage of name variations.

Thanks for the help.
0
Ray PaseurCommented:
Yeah, good point.  In the case of PDO, it's pretty obvious.  In the case of "validateUser" it might be easy to cause a name collision!

Best regards, ~Ray
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.