title: Storing HTML form values into an array in PHP and printing
body: <p>I am trying to get user input of 10 numbers in an html file that will be stored into an array on a php file.  Although when I try to print the array out all I am getting is the word "Array", any idea as to why?</p>
  
  <p>HTML File:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset= "utf-8"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Please enter 10 numbers that will be stored in an array:
  &lt;form action="practice3.php" method="post"&gt;
  &lt;input type="text" name="number1[]" placeholder="First number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number2[]" placeholder="Second number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number3[]" placeholder="Third number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number4[]" placeholder="Fourth number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number5[]" placeholder="Fifth number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number6[]" placeholder="Sixth number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number7[]" placeholder="Seventh number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number8[]" placeholder="Eighth number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number9[]" placeholder="Ninth number"&gt;&lt;br /&gt;
  &lt;input type="text" name="number10[]" placeholder="Tenth number"&gt;&lt;br /&gt;
  &lt;input type="submit" name="submit" value="Submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>PHP File:</p>
  
  <pre><code>&lt;?php
  
      $number1 = $_POST['number1'];
      $number2 = $_POST['number2'];
      $number3 = $_POST['number3'];
      $number4 = $_POST['number4'];
      $number5 = $_POST['number5'];
      $number6 = $_POST['number6'];
      $number7 = $_POST['number7'];
      $number8 = $_POST['number8'];
      $number9 = $_POST['number9'];
      $number10 = $_POST['number10'];
  
      $myArray = Array($number1, $number2, $number3, $number4, $number5, $number6, $number7, $number8, $number9, $number10);
  
      echo $myArray;
  
  
  
  ?&gt;
  </code></pre>