src/Type/StdArray.fix.php
function makeFlattenFace()
    {
        $_f_build = function($data) use (&$_f_build) {
            $args     = func_get_args();
            $isNested = isset($args[1]);

            foreach ($data as $k => $d) {
                // Build PHP Array Request Params Compatible With Curl
                // meta => ['name' => (string)] ---> meta['name'] = (string)
                if ( is_array($d) ) {
                    foreach ($d as $i => $v) {
                        if (is_array($v)) {
                            // Nested Array
                            foreach ($d = $_f_build($v, true) as $kn => $kv) {
                                $kn = ( false !== strpos($kn, '[') ) ? $kn : '['.$kn.']';
                                $data[$k . '[' . $i . ']' . $kn] = $kv;
                            }

                        } else {
                            if ($isNested)
                                $data['[' . $k . ']' . '[' . $i . ']'] = $v;
                            else
                                $data[$k . '[' . $i . ']'] = $v;
                        }
                    }

                    unset($data[$k]);
                }
            }

            return $data;
        };

        $data = $_f_build($this->value);
        return new static($data);
    }
function makeFlattenFace()
    {
        $_f_build = function($data) use (&$_f_build) {
            $args     = func_get_args();
            $isNested = isset($args[1]);

            foreach ($data as $k => $d) {
                // Build PHP Array Request Params Compatible With Curl
                // meta => ['name' => (string)] ---> meta['name'] = (string)
                if ( is_array($d) ) {
                    foreach ($d as $i => $v) {
                        if (is_array($v)) {
                            // Nested Array
                            foreach ($d = $_f_build($v, true) as $kn => $kv) {
                                $kn = ( false !== strpos($kn, '[') ) ? $kn : '['.$kn.']';
                                $data[$k . '[' . $i . ']' . $kn] = $kv;
                            }

                        } else {
                            if ($isNested)
                                $data['[' . $k . ']' . '[' . $i . ']'] = $v;
                            else
                                $data[$k . '[' . $i . ']'] = $v;
                        }
                    }

                    unset($data[$k]);
                }
            }

            return $data;
        };

        $data = $_f_build($this->value);
        return new static($data);
    }
function makeFlattenFace ( ) { $ _f_build = function ( $ data ) use ( & $ _f_build ) { $ args = func_get_args ( ) ; $ isNested = isset ( $ args [ 1 ] ) ; foreach ( $ data as $ k => $ d ) { // Build PHP Array Request Params Compatible With Curl // meta => ['name' => (string)] ---> meta['name'] = (string) if ( is_array ( $ d ) ) { foreach ( $ d as $ i => $ v ) { if ( is_array ( $ v ) ) { // Nested Array foreach ( $ d = $ _f_build ( $ v , true ) as $ kn => $ kv ) { $ kn = ( false !== strpos ( $ kn , '[' ) ) ? $ kn : '[' . $ kn . ']' ; $ data [ $ k . '[' . $ i . ']' . $ kn ] = $ kv ; } } else { if ( $ isNested ) $ data [ '[' . $ k . ']' . '[' . $ i . ']' ] = $ v ; else $ data [ $ k . '[' . $ i . ']' ] = $ v ; } } unset ( $ data [ $ k ] ) ; } } return $ data ; } ; $ data = $ _f_build ( $ this -> value ) ; return new static ( $ data ) ; }
Flatten An Array

@return static
Flatten An Array