title: How to solve PHP error 'Notice: Array to string conversion in...'
body: <p>I have a PHP file that tries to echo a <code>$_POST</code> and I get an error, here is the code:</p>
  
  <pre><code>echo "&lt;html&gt;";
  echo "&lt;body&gt;";
  for($i=0; $i&lt;5;$i++){
      echo "&lt;input name='C[]' value='$Texting[$i]' " . 
           "style='background-color:#D0A9F5;'&gt;&lt;/input&gt;";
  
  }
  echo "&lt;/body&gt;";
  echo "&lt;/html&gt;";
  echo '&lt;input type="submit" value="Save The Table" name="G"&gt;&lt;/input&gt;'
  </code></pre>
  
  <p>Here is the code to echo the POST.</p>
  
  <pre><code>if(!empty($_POST['G'])){
      echo $_POST['C'];
  }
  </code></pre>
  
  <p>But when the code runs I get an error like:</p>
  
  <pre><code>Notice: Array to string conversion in 
  C:\xampp\htdocs\PHIS\FinalSubmissionOfTheFormPHP.php on line 8
  </code></pre>
  
  <p>What does this error mean and how do I fix it?</p>