src/helpers/ArrayHelper.php
public static function pluck( $vars, $field, $preserve_keys = true ) {
		$values = [];
		foreach( $vars as $k => $v ) {
			$values[$k] = static::get($v, $field);
		}
		return $preserve_keys ? $values : array_values($values);
	}
public static function pluck( $vars, $field, $preserve_keys = true ) {
		$values = [];
		foreach( $vars as $k => $v ) {
			$values[$k] = static::get($v, $field);
		}
		return $preserve_keys ? $values : array_values($values);
	}
public static function pluck ( $ vars , $ field , $ preserve_keys = true ) { $ values = [ ] ; foreach ( $ vars as $ k => $ v ) { $ values [ $ k ] = static :: get ( $ v , $ field ) ; } return $ preserve_keys ? $ values : array_values ( $ values ) ; }
Extract a single field from an array of arrays or objects.

@param  array   $vars            An array or arrays or objects
@param  string  $field           The field to get values from
@param  boolean $preserve_keys   Whether or not to preserve the array keys
@return array
Extract a single field from an array of arrays or objects .