Arrays Module

Array helper functions. Call these helper functions from $core->arrays

is_associative($array)

Returns TRUE if the array is an associative array and FALSE if the array is numerically indexed or $array is not an array.

to_object($array, $class = 'stdClass', $parent_object = false, $inside_class = 'stdClass')

Converts an array to an object. Specify the name of a class to use when constructing the object in $class. If this class supports a constructor that takes the object's owner as the first parameter you can pass that owning object in $parent_object. You can also specify the class name to use for classes inside the overall class using $inside_class. These will be used as the class name for sub-items within multi-dimensional arrays.