Transform.php
public static function arrayFromCamelToUnder($arrData)
    {
        $transformed = [];
        foreach ($arrData as $index => $data) {
            foreach ($data as $camelKey => $value) {
                $transformed[$index][self::unCamelize($camelKey)] = $value;
            }
        }
        return $transformed;
    }
public static function arrayFromCamelToUnder($arrData)
    {
        $transformed = [];
        foreach ($arrData as $index => $data) {
            foreach ($data as $camelKey => $value) {
                $transformed[$index][self::unCamelize($camelKey)] = $value;
            }
        }
        return $transformed;
    }
public static function arrayFromCamelToUnder ( $ arrData ) { $ transformed = [ ] ; foreach ( $ arrData as $ index => $ data ) { foreach ( $ data as $ camelKey => $ value ) { $ transformed [ $ index ] [ self :: unCamelize ( $ camelKey ) ] = $ value ; } } return $ transformed ; }
Transform arrays keys from camelCase to under_score
@param array $arrData
@return array
Transform arrays keys from camelCase to under_score