title: Changing value inside foreach loop doesn't change value in the array being iterated over
body: <p>Why does this yield this:</p>
  
  <pre><code>foreach( $store as $key =&gt; $value){
  $value = $value.".txt.gz";
  }
  
  unset($value);
  
  print_r ($store);
  
  Array
  (
  [1] =&gt; 101Phones - Product Catalog TXT
  [2] =&gt; 1-800-FLORALS - Product Catalog 1
  )
  </code></pre>
  
  <p>I am trying to get 101Phones - Product Catalog TXT.txt.gz</p>
  
  <p>Thoughts on whats going on?</p>
  
  <p>EDIT: Alright I found the solution...my variables in my array had values I couldn't see...doing </p>
  
  <pre><code>$output = preg_replace('/[^(\x20-\x7F)]*/','', $output);
  echo($output);
  </code></pre>
  
  <p>Cleaned it up and made it work properly</p>