Fetching rows or columns from result sets in PHP (PDO)
After executing a statement that returns one or more result
sets, use one of the methods available in the PDO API to iterate through
the returned rows. The PDO API also provides methods to fetch a single
column from one or more rows in the result set.
Fetching large objects in PHP (PDO)
When you fetch a large object from a result set, rather
than treating the large object as a PHP string, you can save system
resources by fetching large objects directly into a file on your PHP
server.