【发布时间】:2017-08-30 05:16:25
【问题描述】:
谁能帮我从以下数组中回显 [file] 值和 [label] 值:
Array
(
[0] => stdClass Object
(
[label] => 360p
[type] => video/mp4
[file] => /uploads/myVideo.mp4
[res] => 360p
)
[1] => stdClass Object
(
[label] => 720p
[type] => video/mp4
[file] => /uploads/myVideo.mp4
[res] => 720p
)
[2] => stdClass Object
(
[label] => 480p
[type] => video/mp4
[file] => /uploads/myVideo.mp4
[res] => 480p
)
)
【问题讨论】:
-
您尝试过什么先自己解决这个问题?
-
foreach($data as $results): echo ''.$results['file'].''; echo ''.$results['label'].''; endforeach;
-
你应该在你的问题中“乍一看”。 ^ 并用您尝试过的内容编辑您的问题stackoverflow.com/posts/43216819/edit@AbeliaZahfarina
-
对不起,我是新来的……你能编辑我的问题吗? ^_^