$str ='[{"Rwx_price": 388.5, "End_station_name": "Changsha", "Swz_price": 0, "Swz_num": "--", "To_station_name": "Changsha", "Ydz_num": "--", " Yz_num ":" * "," rw_num ":" * "," arrive_days ":" 1 "," Rz_num ":"--"," Access_byidcard ":" 0 "," yz_price ": 138.5," Ywz_price " : 246.5, "sale_date_time": "1100", "From_station_code": "CUW", "Rz_price": 0, "Gjrw_num": "--", "To_station_code": "CSQ", "Ydz_price": 0, "Wz_price": 138.5, "Tdz_price": 0, "run_time": "15:36", "Yw_num": "*", "Edz_price": 0, "Qtxb_price": 0, "can _buy_now ":" N "," Yw_price ": 238.5," Train_type ":" K "," Rw_price ": 372.5," note ":" July 22 11 o'clock for Sale "," Train_no ":" 760000k5780k " , "Train_code": "K579", "From_station_name": "Chongqing North", "Run_time_minute": "936", "Ywx_price": 255.5, "Arrive_time": "05:28" , "Start_station_name": "Chengdu East", "Start_time": "13:52", "Wz_num": "*", "edz_num": "--", "Qtxb_num": "--", "train_start_date ":" 20160919 "," Gjrw_price ": 0," Tdz_num ":"--"},{" Rwx_price ": 0," End_station_name ":" Changsha "," Swz_price ": 0," Swz_num ":"-- "," To_station_name ":" Changsha "," Ydz_num ":"--"," Yz_num ":" * "," rw_num ":"--"," Arrive_days ":" 1 "," Rz_num ":"--"," Access_ Byidcard ":" 0 "," yZ_price ": 128.5," Ywz_price ": 230.5," sale_date_time ":" 1100 "," From_station_code ":" CUW "," Rz_price ": 0," Gjrw_num ":"-- "," To_station_code ":" CSQ "," Ydz_price ": 0," Wz_price ": 128.5," Tdz_price ": 0," run_time ":" 14:10 "," Yw_num ":" * "," edz_ Price ": 0," Qtxb_price ": 0," Can_buy_now ":" N "," Yw_price ": 222.5," Train_type ":" K "," Rw_price ": 0," note ":" July 22 11 o'clock for sale "," Train_no ":" 760000k50406 "," Train_code ":" K504 "," From_station_name ":" Chongqing North "," Run_time_minute ":" 850 "," Ywx_price " : 237.5, "Arrive_time": "06:22", "Start_station_name": "Chengdu East", "Start_time": "16:12", "Wz_num": "*", "edz_num": "--", "QTXB _num ":"--"," train_start_date ":" 20160919 "," Gjrw_price ": 0," Tdz_num ":"--"},{" Rwx_price ": 509.5," End_station_name ": "Guangzhou", "Swz_price": 0, "Swz_num": "--", "To_station_name": "Changsha", "Ydz_num": "--", "Yz_num": "*", "rw_num": "*", "arrive_days ":" 1 "," Rz_num ":"--"," Access_byidcard ":" 0 "," yz_price ": 180.5," Ywz_price ": 321.5," sale_date_time ":" 1100 "," from_ Station_code ":" CUW "," Rz_price ": 0," Gjrw_num ":"--"," To_station_code ":" CSQ "," Ydz_price ": 0," Wz_price ": 180.5," tdz_ Price ": 0," run_time ":"20:47", "Yw_num": "*", "Edz_price": 0, "Qtxb_price": 0, "Can_buy_now": "N", "Yw_price": 310.5, "Train_type": "K", "Rw_ Price ": 488.5," note ":" July 22 11 o'clock for Sale "," Train_no ":" 770000k35804 "," Train_code ":" K358 "," From_station_name ":" Chongqing North "," Run_ Time_minute ":" 1247 "," Ywx_price ": 331.5," Arrive_time ":" 20:07 "," Start_station_name ":" Chongqing North "," Start_time ":" 23:20 "," Wz_num ":" * "," edz_num ":"--"," Qtxb_num ":"--"," train_start_date ":" 20160919 "," Gjrw_price ": 0," Tdz_num ":"--"}]‘;
$str = Json_decode ($str, true);
Echo ' <meta http-equiv= "Content-type" content= "Text/html:charset=utf-8" > ";
Echo ' <pre> ';
Var_dump ($str); exit;
Convert JSON data [{}] to an array