title: Warning: explode() expects parameter 2 to be string, array given
body: <p>The Script:</p>
  
  <pre><code>&lt;?php
  
      $tqs = "SELECT * FROM `table_two`";
      $tqr = mysqli_query($dbc, $tqs);
      $row = mysqli_fetch_assoc($tqr);
      $thearray[] = $row['some_text_id'];
  
      // Prints e.g.: Array ( [0] =&gt; 164, 165, 166 )
      print_r($thearray);
  
      echo "&lt;br/&gt;&lt;br/&gt;";
      echo "&lt;br/&gt;&lt;br/&gt;";
  
      $thearray = explode(", ", $thearray);
      print_r($thearray);
  
  ?&gt;
  </code></pre>
  
  <p>I have the following entry in one row of the column <em>"some_text_id"</em>:</p>
  
  <pre><code>164, 165, 166
  </code></pre>
  
  <p>I am looking to "explode" this by the comma and have it stored in an array, so I can select the numbers individually, e.g.:</p>
  
  <pre><code>myarray[0], myarray[1], myarray[2]
  </code></pre>
  
  <p>Though I am getting the following error message:</p>
  
  <blockquote>
    <p>Warning: explode() expects parameter 2 to be string, array given in ... (points to the explode function)</p>
  </blockquote>
  
  <p>Any suggestions on how to do this?</p>