public static array_map_field ( Countable $array, string $field, string $key = null ) : array | ||
$array | Countable | An array of arrays or objects with similar keys or properties |
$field | string | The name of a common field within each array/object |
$key | string | Optional field to use as the key in the result array |
Résultat | array | An array of the values of the specified field within each array/object |