PHPackages                             sk/array\_path\_exists - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sk/array\_path\_exists

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sk/array\_path\_exists
======================

Checks if the given keys or indices exists in the array

05PHP

Since Jan 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/skroczek/array_path_exits)[ Packagist](https://packagist.org/packages/sk/array_path_exists)[ RSS](/packages/sk-array-path-exists/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

array\_path\_exits
==================

[](#array_path_exits)

[![Build Status](https://camo.githubusercontent.com/85213798cfda6a51c2f3615f4964d62b76e6b76d904cca19194fb97e4ff17b8a/68747470733a2f2f7472617669732d63692e6f72672f736b726f637a656b2f61727261795f706174685f65786974732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/skroczek/array_path_exits)[![Coverage Status](https://camo.githubusercontent.com/e7ad9de74dcc12b19421a6dff8ebe5e2fc40089e87c0ec9da84a067a13b5e7dd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f736b726f637a656b2f61727261795f706174685f65786974732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/skroczek/array_path_exits?branch=master)

Just like the php array\_key\_exists function but with the possibility to give multiple keys (path).

Installation
------------

[](#installation)

### Download the Library

[](#download-the-library)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require sk/array_path_exists "dev-master"
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Usage
-----

[](#usage)

After installing the library the function is autoloaded by the composer autoloader.

```
