Provides the same functionality like array_column(), but reported to an array of objects.
The easiest way to install this library is to use Composer and add the following
to your project's composer.json
file:
{
"require": {
"bitzyk/array_column_object": "~1"
}
}
Then, when you run composer install
, everything will fall magically into place,
and the array_column_object()
function will be available to your project, as long as
you are including Composer's autoloader.
However, you do not need Composer to use this library.
This library has no dependencies and should work on older versions of PHP.
Download the code and include src/array_column_object.php
in your project, and all
should work fine.