title: Add additional element to array
body: <p>If I have an array <code>$MovieDetails = array();</code> and it is populated by the query below with a foreach loop (5 elements; <code>id, movie_year, genre, image, movie_name</code>), how do I add another element (<code>movie_rating</code>) to the end of the array </p>
  
  <pre><code>$AllMovies = $con -&gt;query
  ("
      SELECT id, movie_year, genre, image, movie_name FROM movies; 
  ");
  
   while($row = $AllMovies-&gt;fetch_object())  {
          $MovieDetails[] = $row;
      }  
  </code></pre>