返回多个记录的PHP数组

时间:2016-06-20 19:22:36

标签: php arrays

我有一个返回多个记录的PHP数组

我正在尝试打印名称,下面的代码显示空白

echo $myArr['data'][0]['name'].'.<br />';

阵列

[context] => Array
        (
            [myArr] => Array
                (
                    [data] => Array
                        (
                            [0] => Array
                                (
                                    [name] => Steve
                                    [id] => 342342
                                )

                        )

                    [paging] => Array
                        (
                            [cursors] => Array
                                (
                                    [before] => MTA4N3TkyNjk5NTY4OTM0
                                    [after] => MTA4NTk4fyNjk5NTY4OTM0
                                )

                        )

                    [summary] => Array
                        (
                            [total_count] => 1
                        )

                )

            [id] => dXNlcl9jb250ZAXh0OgGQ8R4uxKRXv4TB6RJvkDEQGodfghSqptNeZCeOf3WRldmwoLrZC8qI964vhQqZBS0julEpZAmJuRGZAeZBFMhEWS4vN0gVYMtf4hh6HFXGtjGjm1tKSfuoZD
        )

    [id] => 1010330636443448

0 个答案:

没有答案