PHPackages                             emeraldinspirations/lib-helper-array - 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. emeraldinspirations/lib-helper-array

ActiveLibrary

emeraldinspirations/lib-helper-array
====================================

1.1.0(8y ago)014MITPHP

Since May 22Pushed 8y agoCompare

[ Source](https://github.com/emeraldinspirations/lib-helper-array)[ Packagist](https://packagist.org/packages/emeraldinspirations/lib-helper-array)[ RSS](/packages/emeraldinspirations-lib-helper-array/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (4)Used By (0)

[![Logo of the project](https://camo.githubusercontent.com/c67fa1beb89c73a2ce2b2b21d7138d7fdb8c6e7352dbfa052f052835f6bcf013/687474703a2f2f76707335363133322e7670732e6f76682e63612f6c6f676f2e6769744875622e706e67)](https://camo.githubusercontent.com/c67fa1beb89c73a2ce2b2b21d7138d7fdb8c6e7352dbfa052f052835f6bcf013/687474703a2f2f76707335363133322e7670732e6f76682e63612f6c6f676f2e6769744875622e706e67)

lib-helper-array
================

[](#lib-helper-array)

> A helper in [emeraldinspiration](https://github.com/emeraldinspirations)'s [library](https://github.com/emeraldinspirations/library).

The goal of this project is to hold commonly used functions that assist in manipulating base PHP datatypes.

Installing / Getting started
----------------------------

[](#installing--getting-started)

This project has no dependencies, so can simply be required with [composer](https://getcomposer.org/)

```
composer require emeraldinspirations/lib-helper-array
```

Features
--------

[](#features)

- [mapElementFunction](#example---mapelementfunction) - Do an `array_map` using a function inside the array elements
- [xor](#example---xor) - Return an array containing elements only in one of the supplied arrays

### Example - mapElementFunction

[](#example---mapelementfunction)

```
