Foreach array() (very easy)

Hi guys,

This is very easy, but I’'m very sleepy already lol
It’s 1:30am here in my country.

Just print this using foreach,


Array
(
    [vdata] => Array
        (
            [0] => Array
                (
                    [pathwayid] => 7
                    [namepathway] => path1x
                )

            [1] => Array
                (
                    [pathwayid] => 8
                    [namepathway] => path2
                )

            [2] => Array
                (
                    [pathwayid] => 10
                    [namepathway] => path4x
                )

            [3] => Array
                (
                    [pathwayid] => 11
                    [namepathway] => path5
                )

            [4] => Array
                (
                    [pathwayid] => 9
                    [namepathway] => path7
                )

            [5] => Array
                (
                    [pathwayid] => 12
                    [namepathway] => path8
                )

            [6] => Array
                (
                    [pathwayid] => 13
                    [namepathway] => path9
                )

        )

Thanks in advance.


foreach ($array['vdata'] as $row)
{
    echo 'pathwayid: ' . $row['pathwayid'] . '<br>';
    echo 'namepathway: ' . $row['namepathway'] . '<br>';
}

@fretburner ;
Thanks dude, it save me time.