Solar_Sql_Model_Collection::getColVals()

public array Solar_Sql_Model_Collection::getColVals ( string $col )

Returns an array of all values for a single column in the collection.

Parameters

  • (string) $col: The column name to retrieve values for.

Returns

  • (array) An array of key-value pairs where the key is the collection element key, and the value is the column value for that element.

Description

Returns an array of all values for a single column in the collection.



Local