title: PHP creating an array from form input fields
body: <p>I'm trying to create an array to store numbers and add them together.</p>
  
  <pre><code>&lt;input type="number" name="numbers[]"/&gt;
  </code></pre>
  
  <p>I'm getting an undefined variable on the following line</p>
  
  <pre><code>foreach($numbers as $number)
  </code></pre>
  
  <p>I'm sure this is probably something basic but I'm relatively new to php and help would be greatly appreciated.</p>