public queryColumn ( ) : array | ||
return | array | the first column of the query result. Empty array if no result. |
public function queryColumn()
{
$rows = $this->query()->readAll();
$column = array();
foreach ($rows as $row) {
$column[] = current($row);
}
return $column;
}