public static function arrayFlattenDotNotation($array, $prepend = '')
    {
        $results = array();
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                $results = array_merge($results, static::arrayFlattenDotNotation($value, $prepend.$key.'.'));
            } else {
                $results[$prepend.$key] = $value;
            }
        }

        return $results;
    }
public static function arrayFlattenDotNotation($array, $prepend = '')
    {
        $results = array();
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                $results = array_merge($results, static::arrayFlattenDotNotation($value, $prepend.$key.'.'));
            } else {
                $results[$prepend.$key] = $value;
            }
        }

        return $results;
    }
public static function arrayFlattenDotNotation ( $ array , $ prepend = '' ) { $ results = array ( ) ; foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ results = array_merge ( $ results , static :: arrayFlattenDotNotation ( $ value , $ prepend . $ key . '.' ) ) ; } else { $ results [ $ prepend . $ key ] = $ value ; } } return $ results ; }
Flatten a multi-dimensional associative array into dot notation

@param  array   $array
@param  string  $prepend
@return array
Flatten a multi - dimensional associative array into dot notation