# Class BaseUtilities

Base functions for dealing with responses, headers content and internal type handling

### Direct known subclasses

`Catapult\Cleaner`, `Catapult\Converter`, `Catapult\DataPacket`, `Catapult\Locator`, `Catapult\PrototypeUtility`, `Catapult\TitleUtility`, `Catapult\XMLUtility`

Namespace: Catapult
Located at utils/Base.php

## Methods summary

`public static` | # `is_multidimensional( context: $context, $shallow = true )` check for multidimensional array, or objects. check for multidimensional array, or objects. perform a shallow inspection traversing each object/array, would be too slow #### Parameters $context or object $shallow
`public static` | # `camelcase( )` camelcase the provided text. same as default if already camelized camelcase the provided text. same as default if already camelized
`public static` | # `find( `Catapult\BaseUtilities::assoc()` $headers, term $term )` find a particular item in a parsed headers array find a particular item in a parsed headers array #### Parameters $headers array $term to get
`public static` | # `same_type( var1: & $var1, var2: & $var2 )` internal: are the two Catapult types the same internal: are the two Catapult types the same #### Parameters $var1 or object $var2 or object
`public static` | # `prop_or_arr( object: $obj, prop: $key )` perform on an object or array returning its property or index perform on an object or array returning its property or index #### Parameters $obj or object $key property
`public static` | # `assoc( $arr, $keys )` make an assoc array from a func_get_args/1 passing, must have key array. Follows numerical order make an assoc array from a func_get_args/1 passing, must have key array. Follows numerical order
`public static` | # `is_ref( var1: & $var1, var2: & $var2 )` Checks if two objects are references of each other Checks if two objects are references of each other #### Parameters $var1 or object $var2 or object
`public` | # `datefromApi( date: $date, std: $std = false )` make a catapult formatted date a native PHP date or unix stamp make a catapult formatted date a native PHP date or unix stamp #### Parameters $date date (2015-01-12T13:49:43Z) format $std PHP dates
`public` | # `dateToApi( date $date )` date to Catapult format. Catapult\Date uses this * deprecate Catapult\DateStamp in place of this date to Catapult format. Catapult\Date uses this * deprecate Catapult\DateStamp in place of this #### Parameters $date