This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Helper_Array

Helpful functions for working with Arrays. Includes recursive fetching

Direct known subclasses


Copyright: Copyright (c) 2011 Concrete5. (
License: MIT License
Author: Christiaan Baartse
Located at core/helpers/array.php

Methods summary

# get( array $array, string|integer|array $keys, mixedvar $default = null )

Fetches a value from an (multidimensional) array

# set( array $array, unknown_type $keys, unknown_type $value )

Sets a value in an (multidimensional) array, creating the arrays recursivly

public array
# flatten( array $array )

Takes a multidimensional array and flattens it