Expands a dot notation array into a full multi-dimensional array.

/**
 * Expands a dot notation array into a full multi-dimensional array.
 *
 * @return self Returns instance of The Arrays class.
 */
public function undot(): self

Examples

$arrays = Arrays::create([
                            'movies.the_thin_red_line.title' => 'The Thin Red Line'
                        ]);

$arrays->undot();

print_r($arrays->toArray());

The above example will output:

Array
(
    [movies] => Array
        (
            [the_thin_red_line] => Array
                (
                    [title] => The Thin Red Line
                )

        )

)

Getting Started

Methods