分析错误:语法错误,意外'2'(T_LNUMBER)



将感谢您的任何帮助

<?php 
$jsonobj = '{
"status": "1",
"receiver_account": "8",
"USD_amount": "1.670",
"fee_in_USD": "0.000",
"PKR_amount": "280",
"fee_in_PKR": "0",
"USD_amount_with_fee": "1.670",
"PKR_amount_with_fee": "280",
"trx_website": "website.com",
"transaction_id": "2JW9651118P",
"trx_date": "25-03-2020 9:13:48 PM",
"order_id": "12345678",
"addi_info": "Test Payment",
"sender_details": "Fund Received From 161919",
"trx_details": "$1.67 Receive against TID: '2JW9651118P' "
}';
json_decode($jsonobj);
var_dump($jsonobj);
?>

您需要转义最后一个字段中的单引号:

"trx_details": "$1.67 Receive against TID: '2JW9651118P' "

最新更新