不能为激励密钥和数据循环选项卡关联

I have a table json and I will get the key of the table files, I do like that but it does not work

i want received

1./home/ke/Test-Code/CODE.php

  1. [message] => Missing file doc comment

3.[source] => PEAR.Commenting.FileComment.Missing

$var = json_decode($data, true);
//print_r($var);
foreach ($var as $key => $value) {
    if (is_array($value)) {
        print_r($key);
    }
}
$var = json_decode($data, true);
//print_r($var);
foreach ($var as $key => $value) {
    if (is_array($value)) {
        print_r($key);
    }
}

here is my tab json

Array
(
    [totals] => Array
        (
            [errors] => 2
            [warnings] => 0
            [fixable] => 0
        )

    [files] => Array
        (
            [/home/ke/Test-Code/CODE.php] => Array
                (
                    [errors] => 2
                    [warnings] => 0
                    [messages] => Array
                        (
                            [0] => Array
                                (
                                    [message] => Missing file doc comment
                                    [source] => PEAR.Commenting.FileComment.Missing
                                    [severity] => 5
                                    [type] => ERROR
                                    [line] => 2
                                    [column] => 1
                                    [fixable] => 
                                )

                            [1] => Array
                                (
                                    [message] => Expected "for (...) {
"; found "for (...)
{
"
                                    [source] => PEAR.ControlStructures.ControlSignature.Found
                                    [severity] => 5
                                    [type] => ERROR
                                    [line] => 12
                                    [column] => 1
                                    [fixable] => 
                                )

                        )

                )

        )

)