title: Pass function argument returns into one array
body: <p>I have a function that returns a content for each field (a form)</p>
  
  <pre><code>function fields( $content ) {
  
  }
  </code></pre>
  
  <p><code>$content</code> argument will return different content for each available field.
  If we use this for example and we have three fields, I'll receive three separate emails:</p>
  
  <pre><code>function fields( $content ) {
      mail('example@example.com','content',print_r($content ,true));
  }
  </code></pre>
  
  <p>I want to combine the result into an array and then send to email, I tried:</p>
  
  <pre><code>$array = array();
  foreach ($content as $field{
      $array[] = $field;
  }
  </code></pre>
  
  <p>but it will only put the content of each into a separate array, I know foreach won't be working because <code>$content</code> variable is not already and array, but I can't seem to find a way.</p>