PHPackages                             morrelinko/array-take - 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. morrelinko/array-take

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

morrelinko/array-take
=====================

Function for quick array item/items retrieval.

1.1.0(10y ago)023MITPHPPHP &gt;=5.3

Since Oct 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/morrelinko/array-take)[ Packagist](https://packagist.org/packages/morrelinko/array-take)[ RSS](/packages/morrelinko-array-take/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

array\_take()
-------------

[](#array_take)

When dealing with arrays, retrieving elements from them can be cumbersome. Some create an extra array that stores the elements that are expected and do lots of isset checking on the original array.

For example, if you wanted to retrieve some values from forms, you may do something like this: (This is just an example)

```
