透過curl傳回的header資訊怎麼處理成關聯數組,資料如下;
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 17 Oct 2022 10:54:43 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 2168
Connection: keep-alive
############################# ####Keep-Alive: timeout=8######Cache-Control: no-cache, must-revalidate######X-Content-Type-Options: nosniff######Request -ID: 08F3E8****0610E80618A1****A306209C2B28F5E205-0######Content-Language: zh-CN######Wechatpay-Nonce: a47a9c64de6007288888888 #Wechatpay-Signature: sign######Wechatpay-Timestamp: 1666004083######Wechatpay-Serial: 6D64345352D****44D12854B73****F1157FAC6E#pay. WECHATPAY2-SHA256-RSA2048######懂的麻煩幫我一下,謝謝了###