S
S
Sasha Brahms2015-11-08 13:48:07
PHP
Sasha Brahms, 2015-11-08 13:48:07

How to decompose a multidimensional array?

I have a multidimensional array:

array('lvl_one'=> array(
                                    'lvl_two' => array(
                                                                 'general'        => 'nuzhnoe',
                                                                  'drugoe_two' => 'sdsad'
                                                                ),
                                    'drugoe' => 'info',
                                    'mda'      => 'sss'
                                   )

how to output in just one line?
so that the result is:
array(
        'lvl_one',
        'lvl_two',
        'general',
        'drugoe_two',
        'drugoe',
        'mda'

?
needed to search through a multidimensional array

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sunrails, 2015-11-08
@Dlike

array_walk_recursive ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question