AthensFramework/core

View on GitHub
doc/api/Athens-Core-Etc-ArrayUtils.md

Summary

Maintainability
Test Coverage
Athens\Core\Etc\ArrayUtils
===============

Class ArrayUtils is a static class to provide array manipulation utilities




* Class name: ArrayUtils
* Namespace: Athens\Core\Etc







Methods
-------


### findOrDefault

    mixed Athens\Core\Etc\ArrayUtils::findOrDefault(string|integer $needle, array $haystack, mixed $default)

Find the element of the given array with the given key, or return the
default if unfound.



* Visibility: **public**
* This method is **static**.


#### Arguments
* $needle **string|integer**
* $haystack **array**
* $default **mixed**