What significance does "use PDO" have?

I'm using NetBeans, and it occasionally gives me a warning that I should "generate use PDO". If I let NetBeans do it for me, it creates:

use PDO;

Open in new window


at the top of the page.

I plan to use both PDO and mysqli in my project, would that interfere? Is this even a recommended thing of any significance?

Thanks.
elepilAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

elepilAuthor Commented:
Mark Ely,

That link does not address my question. My question is not whether I should use PDO, but rather, what is the significance of a physical line that says "use PDO;" at the beginning of a PHP script. That article has several users complaining how the author does not explain the "use PDO" statement.
Ray PaseurCommented:
PHP has overloaded the keyword "use" and it has (at least) two meanings.  I wondered about this, too, in the Laravel framework, where there are numerous references to Illuminate classes in "use" statements.  I am guessing that your "use"  statement refers to a namespace declaration.  Don't rush yourself on this topic -- it will take some time to get how PHP namespaces work.  But if you're not using namespaces in your code now, drop whatever you're doing and go refactor.   You can thank me later!
http://php.net/manual/en/language.namespaces.basics.php
http://php.net/manual/en/language.namespaces.faq.php

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,

I guess there are two variants. Either just the 'use', or 'use ... as ...' But I have a better idea of what it does now, thanks for the help.
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.