在变量前后拼接上制表符 foreach($orderList as $k=>$v){ $orderList[$k]['pos_id'] = "\t".$v['pos_id']."\t"; } 转载于:https://www.cnblogs.com/weiyiyong/p/10766362.html