Registry / utility / rhumsaa-array-column

rhumsaa-array-column

JSON →
library1.1.3phppackagistunverified

Provides array_column() functionality for PHP versions earlier than 5.5.

composer require rhumsaa/array_column
INSTALL
IMPORT
SIG · RHUMSAA-ARRAY-COLU
R
rhumsaa-array-column
utilityphpv1.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ArrayColumn
use Ramsey\ArrayColumn\ArrayColumn;

Extract a column from an array of arrays.

use Ramsey\ArrayColumn\ArrayColumn; $records = [ ['id' => 1, 'name' => 'Alice'], ['id' => 2, 'name' => 'Bob'], ]; $names = ArrayColumn::column($records, 'name');
Debug
Known issues
gotchaOnly needed for PHP < 5.5; use native array_column() on PHP 5.5+.
fix
Use native array_column() if PHP >= 5.5.
affects: >=1.0.0
Upgrade
Version history
1.1.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
rhumsaa-array-column — pip install rhumsaa-array-column · libregistry