The bindColumn() method provides an elegant way of fetching data, where you bind a specific column
from the database directly to a PHP variable. Once you execute the query and loop through the results using the
fetch() method, the values in these variables are automatically updated.
This greatly improves code readability, as you avoid constantly referencing associative array keys and work directly with the names you have defined.
bindColumn() method binds a column number or name to a PHP variable.fetch() function.