X
X
XenK2016-01-24 09:07:40
PHP
XenK, 2016-01-24 09:07:40

Foreach from an array?

There is such an array:

Array
(
    [names] => Array
    (
        [0] => Array
        (
            [username] => Ivan

                )

            [1] => Array
        (
            [username] => Victor

                )

            [2] => Array
        (
            [username] => Vasya

                )

        )

 [tel_number] => Array
(
    [0] => Array
    (
        [telephone] => 903903903
    )
    [1] => Array
(
    [telephone] => 90209080
)    
)
)

You need to output all the data (['names']['username'] and ['tel_number']['telephone']) to a table using foreach. How to do it right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question