Help converting Javascript arrays to PHP arrays


#1

I can’t figure out from the PHP Manual how to create the nested arrays that I need. Below is the javascript I have for the arrays, could someone please let me know how these should be formatted in PHP. Thank you.

var sets=[
{set_name:“Humans”,set_newinfo:"",set_make:“Role 4 Initiative”,set_date:“July 24, 2018”,set_info:“6 Miniatures”,set_link:“humans.php”,set_image:"…/images/icons/role-4-initiative-icon.gif"},
{set_name:“Orcs”,set_newinfo:"",set_make:“Role 4 Initiative”,set_date:“July 24, 2018”,set_info:“6 Miniatures”,set_link:“orcs.php”,set_image:"…/images/icons/role-4-initiative-icon.gif"},
{set_name:“Zombies”,set_newinfo:"",set_make:“Role 4 Initiative”,set_date:“July 24, 2018”,set_info:“6 Miniatures”,set_link:“zombies.php”,set_image:"…/images/icons/role-4-initiative-icon.gif"},
{set_name:“Skeletons”,set_newinfo:"",set_make:“Role 4 Initiative”,set_date:“July 24, 2018”,set_info:“6 Miniatures”,set_link:“skeletons.php”,set_image:"…/images/icons/role-4-initiative-icon.gif"},
{set_name:"",set_newinfo:"",set_make:"",set_date:"",set_info:"",set_link:"",set_image:""}
];

var setsInfo=[{
setsTitleName: “Role 4 Initiative Miniatures”,
navMenu1: “Role 4 Initiative Miniatures”,
navMenu2: “”,
navMenu3: “”,
navMenuLink2: “http://www.minisgallery.com/dnd/index.html”,
navMenuLink3: “”
}];