Why does this yield this:
foreach( $store as $key => $value){ $value = $value.\".txt.gz\"; } unset($value); print_r ($store); Array ( [1] => 101Phon
The $value variable in the array is temporary, it does not refer to the entry in the array. If you want to change the original array entry, use a reference:
$value
foreach ($store as $key => &$value) { // ^ reference $value .= '.txt.gz'; }