adrian-ortega/dot-notation-php

Access array data with dot notation

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/adrian-ortega/dot-notation-php

0.0.0 2018-02-25 22:30 UTC

This package is not auto-updated.

Last update: 2025-09-28 02:25:47 UTC


README

Access array data with dot notation.

Usage

$data = [
	'first_name' => 'John',
	'title' => 'Doe',
	'company' => 'ACME',
	'age' => 36,
	'address' => [
		'street' => '123 Anywhere Street',
		'city' => 'Los Angeles',
		'state' => 'CA',
		'zip_code' => 90210
	]
];

$street = DotNotation::parse('address.street', $data);

// outputs 123 Anywhere Street
echo $street