title: Add element to array without overwriting it in php?
body: <p>I'm trying to add a new element to an array from form values in php.  However every time I do this I overwrite the most recent element.  So my existing array is like this:</p>
  
  <pre><code>$moviepages = [[ "title" =&gt; "test1",
  "description" =&gt; "this is my test"
  
  ]
  ];
  </code></pre>
  
  <p>And I want to add this (created through form values) to it:</p>
  
  <pre><code>$newfile = [
  
    "title" =&gt; "test2",
  "description" =&gt; "test2",
  
   ];
  </code></pre>
  
  <p>by doing this:</p>
  
  <pre><code>    $moviepages[] = $newfile;
  </code></pre>
  
  <p>However I need to add elements continuously so that when different users come in they can add items on to the same array without the previous array element getting removed. Is there a way to do this?
  Thanks!</p>