PHP PDO - What do $dbh and $sth stand for?

Viewed 22096

In PDO examples I often find the acronyms $dbh and $sth used. I suppose $dbh stands for "database handle" - correct? What about $sth? "Statement handle"?

Are there good reasons to use the above instead of $db_connection and $query (or other as appropriate)?

3 Answers
Related