title: Returning everything from for outside of for
body: <p>Currently I am running this for loop which generates some content </p>
  
  <pre><code>$total = count($_FILES['uploaded_file']['name']);
  $str="";    
  for($i=0; $i&lt;$total; $i++) 
  {
      $content="";
      $str=$str."";
      $file_path = "v/";
      $tmpFilePath = $_FILES['uploaded_file']['tmp_name'][$i];
      $ogfilename = $_FILES['uploaded_file']['name'][$i];
      $ogfilesize = $_FILES['uploaded_file']['size'][$i];
      $filename=$_FILES['uploaded_file']['name'][$i];
      $str=$str.'&lt;div style="border-bottom: 1px solid #eee; padding-bottom: 10px;"&gt;Song Name: '.$ogfilename.' &lt;br&gt;URL: &lt;a href="http://traxchive.com/v/'.$rand.'"&gt;v/'.$rand.'&lt;/a&gt;&lt;br&gt;File Name: '.$filename.'&lt;br&gt;Size: '.$val.'&lt;/div&gt;';   
  }
  $str=$str."";
  echo $str;
  print '&lt;textarea style="width: 100%"&gt;&lt;a href="/v/'.$rand.'"&gt;'.$ogfilename.'&lt;/a&gt;&lt;/textarea&gt;';
  </code></pre>
  
  <p>I'm trying to make it so that all of the results which are returned within the for loop will be displayed inside of a <code>&lt;textarea&gt;</code> tag as you can see being declared at the bottom. (this only returns the last result how ever if numerous files are uploaded) </p>
  
  <p><a href="https://i.stack.imgur.com/2d5gI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2d5gI.png" alt="enter image description here"></a></p>
  
  <p>How can I make it so that all of the results will return in the <code>&lt;textarea&gt;</code> portion?</p>