title: PHP Insert an array as a string into mysql text field
body: <p>I have an array inside this variable:</p>
  
  <pre><code>$myArray;
  </code></pre>
  
  <p>Then I'm inserting it into the database where I have a text field:</p>
  
  <pre><code>mysqli_query($con,"INSERT INTO myTable (thetextfield) VALUES ('$myArray')");
  </code></pre>
  
  <p>The problem is that I've looked in the table content and it just says "Array" (without the quotes).</p>
  
  <p>Is there not a way to insert the array as it is or separate them by commas and insert them?</p>