title: Dynamic Content in PHP array
body: <p>This should be a quick one. </p>
  
  <p>I'm pulling a list of id's and I need to place them in an array.</p>
  
  <p>Here is my php code to get the list of id's</p>
  
  <pre><code>$get_archives = mysql_query("SELECT * FROM archive WHERE user = '$email'  ");
  while ($row = mysql_fetch_assoc($get_archives)) {
  $insta_id = $row['insta_id'];
  
      $insta_id = "'" . $insta_id."',";
  
  echo $insta_id;
  
      };
  </code></pre>
  
  <p>This echo's a list of id's that looks like this: '146176036','136514942',</p>
  
  <p>Now I want to put that list into an array. So i tried something like this:</p>
  
  <pre><code>    $y = array($insta_id);
  </code></pre>
  
  <p>However that isn't working. Any suggestions? </p>