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

ArrayHelper

Copyright: Copyright (c) 2011 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Christiaan Baartse anotherhero@gmail.com
Located at core/helpers/array.php

Methods summary

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

Fetches a value from an (multidimensional) array

public
# 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