Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
README.md
array_keys_or_values.php

README.md

Usage

Sometimes we want to be able to to write an interface that uses an array like this:

array(
  "User",
  "Name",
  "First" => "FirstName",
  "Last" => "LastName"
);

and get the responding array ["User", "Name", "First", "Last"]

introducting array_keys_or_values() it does just this.

Something went wrong with that request. Please try again.