Prepares and executes an SQL query and returns the value of a single column
of the first row of the result.
public fetchColumn ( string $statement, array $params = [], integer $column, array $types = [] ) : mixed | boolean | ||
$statement | string | The SQL query to be executed. |
$params | array | The prepared statement params. |
$column | integer | The 0-indexed column number to retrieve. |
$types | array | The query parameter types. |
return | mixed | boolean | False is returned if no rows are found. |