There is a core function now (called array_column) which is almost exactly the same as Arr::pluck. It only lacks the original index returning. I opened an issue to implement this feature. If it is implemented, you should consider using it in PHP >=5.5.
There is a core function now (called
array_column
) which is almost exactly the same asArr::pluck
. It only lacks the original index returning. I opened an issue to implement this feature. If it is implemented, you should consider using it in PHP >=5.5.Reference Legacy implementation for PHP <5.5