Skip to content

Use array_column in Arr::pluck #4

@sagikazarmark

Description

@sagikazarmark

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.

Reference
Legacy implementation for PHP <5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions