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:
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.
use PDO;
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.
http://code.tutsplus.com/tutorials/why-you-should-be-using-phps-pdo-for-database-access--net-12059
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.