2011年6月1日
摘要: 使用制表符、换行符的方法 制表符”\t”用户分割同一行中的列,换行符”\t\n”可以开启下一行。 <?php header(”Content-Type: application/vnd.ms-execl”); header(”Content-Disposition: attachment; filename=myExcel.xls”); header(”Pragma: no-cache”); header(”Expires: 0″); /*first line*/ echo “hello”.”\t”; echo “world”.”\t”; echo “\t\n”; /*start of 阅读全文
posted @ 2011-06-01 21:44 网宗 阅读(636) 评论(2) 推荐(0) 编辑
摘要: $cityname = array_flip($city_DB[name]);//把数组的键和值交换形成了新的数组$city_name = array_search($city_id,$cityname,true);//查找值取得键 阅读全文
posted @ 2011-06-01 10:58 网宗 阅读(388) 评论(2) 推荐(0) 编辑

糗乐网-糗事|乐事|天下事