';echo '车次出发站出发时间到达站到达时间历时价格';foreach ($data['data']['result'] as $train) {$train_no = $train['station_train_code'];$from_station = $train['from_station_name'];$from_time = $train['start_time'];$to_station = $train['to_station_name'];$to_time = $train['arrive_time'];$duration = $train['lishi'];$price = $train['price'];echo '' . $train_no . '' . $from_station . '' . $from_time. '' . $to_station . '' . $to_time . '' . $duration . '' . $price . '';}echo '';} else {echo '
没有查询到符合条件的火车票。
';}}?>