Hi all, Can I use array_push to push a full array into another array to make a multidimensional array. Here is my code
$detailsarray = array(Teamname => $userid, Player1 => $userid, Player2 => $Player2);
array_push($playerarray,$detailsarray);
I need this to keep track of players in an event. When the new array is created I update the database and that can then be pulled on another page to see who is in the event. When a new person signs up then they are just added to the end of the array with there team details. Am I going about this the right way?