Registry / utility / igorw-get-in

igorw-get-in

JSON →
library1.0.3phppackagistunverified

Functions for hash map (assoc array) traversal.

composer require igorw/get-in
INSTALL
IMPORT
SIG · IGORW-GET-IN
I
igorw-get-in
utilityphpv1.0.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.

get_in
use igorw\get_in;

Use get_in to safely traverse nested arrays.

use function igorw\get_in; $data = ['a' => ['b' => 'c']]; $value = get_in($data, ['a', 'b']); // Returns 'c'.
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Resources
igorw-get-in — pip install igorw-get-in · libregistry