如何打印php数组的单独值

时间:2019-04-05 20:44:54

标签: php json

如何分别从数组 $ getGP 中打印值? 我只需要打印1080p文件值。这是我在做什么:


<?php

  echo($getGP);


?>

输出:


[
 {
  "type": "video/mp4", 
  "label": "1080p", 
  "file": "https://lh3.googleusercontent.com/9hjfn7zqOZINb2UmY352yVU3XWLE7vvtDRHiWm9KPwd6hIBultO5yFea0yzGkwNdci9c-Y1SJINEN6dqoqrTqFI2B57d9Di_tODQ2Tsrp0nXS9XCfU9nCvxp1ONbQoquLFeeesa3iw=m37"
},
{
 "type": "video/mp4", 
 "label": "720p", 
 "file": "https://lh3.googleusercontent.com/9hjfn7zqOZINb2UmY352yVU3XWLE7vvtDRHiWm9KPwd6hIBultO5yFea0yzGkwNdci9c-Y1SJINEN6dqoqrTqFI2B57d9Di_tODQ2Tsrp0nXS9XCfU9nCvxp1ONbQoquLFeeesa3iw=m22"
},
{
 "type": "video/mp4",
 "label": "360p", 
 "file": "https://lh3.googleusercontent.com/9hjfn7zqOZINb2UmY352yVU3XWLE7vvtDRHiWm9KPwd6hIBultO5yFea0yzGkwNdci9c-Y1SJINEN6dqoqrTqFI2B57d9Di_tODQ2Tsrp0nXS9XCfU9nCvxp1ONbQoquLFeeesa3iw=m18"
}
]

0 个答案:

没有答案