how to Create Json in Php

前端 未结 3 741
猫巷女王i
猫巷女王i 2021-01-29 17:16

How to Create Json Like This In Php?

[
 [
  \"16226281\",
   \"11\",
   \"Disclosure.1994.720p.BluRay.H264.AAC-RARBG\",
   \"finished\"
  ],
  [ 
   \"16226038\"         


        
3条回答
  •  执笔经年
    2021-01-29 17:21

    $arr = [
     [
      "16226281",
       "11",
       "Disclosure.1994.720p.BluRay.H264.AAC-RARBG",
       "finished"
    ],
    [ 
      "16226038",
      "140",
      "Courage The Cowardly Dog (1999-2002)",
      "finished"
     ],
     [
      "16226020",
      "101",
      "[R.G. Mechanics] Call of Duty 4 Modern Warfare",
      "finished"
     ]
    ]
    
    
    echo json_encode($arr);
    

    Follow below link :

    http://php.net/manual/en/function.json-encode.php

提交回复
热议问题