Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionality updates to array_column() #331

Closed
wants to merge 3 commits into from
Closed

Functionality updates to array_column() #331

wants to merge 3 commits into from

Commits on Apr 22, 2013

  1. array_column: Maintain original index association if no third parameter

    If no third parameter is passed, the resulting array maintains the
    indexes passed in from the original array. Feature suggested by David
    Zülke.
    ramsey committed Apr 22, 2013
    Configuration menu
    Copy the full SHA
    b6f2364 View commit details
    Browse the repository at this point in the history
  2. array_column: 2nd param should be optional to use entire rows as result

    When NULL is passed as the second parameter, all columns from the input
    array are returned. See https://bugs.php.net/bug.php?id=64493
    ramsey committed Apr 22, 2013
    Configuration menu
    Copy the full SHA
    4449560 View commit details
    Browse the repository at this point in the history
  3. array_column: Support array of column names for second parameter

    If the second parameter is an array of column names, each row returned
    in the result array is an array containing only the specified columns.
    The rows are indexed by the third parameter. Feature inspired by
    suggestions from Hakre and Craig Campbell. See
    #257 (comment)
    ramsey committed Apr 22, 2013
    Configuration menu
    Copy the full SHA
    7f2aeb5 View commit details
    Browse the repository at this point in the history