Return a selected field from a contentset.
public selectField ( array $content, array | string $fieldName, boolean $startempty = false, string $keyName = 'id' ) : array | ||
$content | array | A Bolt record array |
$fieldName | array | string | Name of a field, or array of field names to return from each record |
$startempty | boolean | Whether or not the array should start with an empty element |
$keyName | string | Name of the key in the array |
return | array |