我会知道如何在emcRef上显示元素,状态为...
它写一个数组,但是如果我做这个var_dump(is_array($result_order_status));
返回错误的
error : Warning: Illegal string offset 'emcRef'
谢谢 我有这个结果
$result_order_status = $this->Boxtale->getStatus('19022xxxxxxxONR04A0FR');
var_dump($result_order_status);
string(533) "API OrderStatus :
Array
(
[emcRef] => 19022xxxxxxxONR04A0FR
[state] => Commande validée par le transporteur
[opeRef] => 6becf38c-0ce6-xxxx-a59b-9e97729ab478
[labelAvailable] => 1
[labelUrl] => http://test.envoimoinscher.com/documents?type=bordereau&envoi=19022xxxxxxxONR04A0FR
[labels] => Array
(
[0] => http://test.envoimoinscher.com/bordereaux/nBqtCEHx2UoYGnnjiXwNJcM1VVYiWgrf/1902268440MONR04A0FR_bordereau_1.pdf
)
[documents] => Array
(
)
)