Command/TranslationsHelperCommand.php
/**
     * associative array indexed to dimensional associative array of keys
     *
     * @param $dest
     * @param $orig
     * @param $currentKey
     */
associative array indexed to dimensional associative array of keys
@param $dest
@param $orig
@param $currentKey
associative array indexed to dimensional associative array of keys @param $dest @param $orig @param $currentKey
protected function a2k(&$dest, $orig, $currentKey)
    {
        if(is_array($orig) && (count($orig)>0)){
            foreach($orig as $key=>$value){
                if(is_array($value)){
                    $this->a2k($dest, $value, ($currentKey ? $currentKey . '.' : '') . $key);
                }else{
                    $dest[($currentKey ? $currentKey . '.' : '') . $key] = $value;
                }
            }
        }
    }
protected function a2k ( & $ dest , $ orig , $ currentKey ) { if ( is_array ( $ orig ) && ( count ( $ orig ) > 0 ) ) { foreach ( $ orig as $ key => $ value ) { if ( is_array ( $ value ) ) { $ this -> a2k ( $ dest , $ value , ( $ currentKey ? $ currentKey . '.' : '' ) . $ key ) ; } else { $ dest [ ( $ currentKey ? $ currentKey . '.' : '' ) . $ key ] = $ value ; } } } }
associative array indexed to dimensional associative array of keys
 @param $dest
 @param $orig
 @param $currentKey
associative array indexed to dimensional associative array of keys @param $dest @param $orig @param $currentKey
//$tmp = explode('.', $currentKey); //$currentKey = implode('.', array_pop($tmp));