【发布时间】:2017-01-18 18:29:00
【问题描述】:
为什么会这样:
foreach( $store as $key => $value){
$value = $value.".txt.gz";
}
unset($value);
print_r ($store);
Array
(
[1] => 101Phones - Product Catalog TXT
[2] => 1-800-FLORALS - Product Catalog 1
)
我正在尝试获取 101Phones - 产品目录 TXT.txt.gz
对发生了什么的想法?
编辑:好吧,我找到了解决方案...我数组中的变量有我看不到的值...正在做
$output = preg_replace('/[^(\x20-\x7F)]*/','', $output);
echo($output);
清理并使其正常工作
【问题讨论】: