Link to home
Start Free TrialLog in
Avatar of elepil
elepil

asked on

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.
Avatar of Mark Ely
Mark Ely
Flag of United States of America image

Avatar of elepil
elepil

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elepil

ASKER

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.