header ("Content-type:application/vnd.ms-excel"); $filename = ' Lbtx '. Time (); header ("Content-disposition:attachment; filename= $filename. xls"); echo ' number '. Chr (9). ' Serial number '. CHR (9). ' User name '. chr (9). ' Mobile phone number '. chr (9). ' OpenID '. chr (9). ' The balance can be raised '. Chr (9). ' Cash withdrawal amount '. chr (9). ' Initiation Time '. chr (9). ' Last operating time '. Chr (9). ' foreach ($list as $k = $v) { echo $v ["withdraw_id"]. Chr (9); echo $v [' Trade_no '].CHR (9); echo $v [' user_name '].CHR (9); echo $v [' User_tel '].CHR (9); echo $v [' OpenID '].CHR (9); echo $v [' Before_price '].CHR (9); echo $v [' Price '].CHR (9); echo $v [' Create_time '].CHR (9); echo empty ($v [' done_time '])? $v [' Create_time ']. Chr (9): $v [' Done_time '].CHR (9); echo $type [$v [' Withdraw_status ']].chr; }
This article is from the "Old Man" blog, please be sure to keep this source http://laotouzi.blog.51cto.com/12411135/1883281
Data is transferred to the Excel table