UTILITY

has_path()

Check whether a nested dot-notation path exists.

Signature

bool has_path(array|object $data, string $path)

Example

has_path(['user'=>['name'=>'Ada']], 'user.name'); // true

Available from: 1.5.0

Reference navigation

Previous: group()

Next: head()

Back to utilities