使用php获取此数组中的值时遇到问题
我想获得每个数组集的订单号。但我似乎无法做到这一点。 当我可以获得此阵列的样本部分时:使用php获取此数组中的值时遇到问题,php,Php,我想获得每个数组集的订单号。但我似乎无法做到这一点。 当我可以获得此阵列的样本部分时: Array Dump: <?php $data = array ( 0 => stdClass::__set_state(array( 'orderId' => 577633674, 'orderNumber' => '2939', 'orderKey' => '2939', 'orderDate' => '2020-07-
Array Dump:
<?php
$data =
array (
0 =>
stdClass::__set_state(array(
'orderId' => 577633674,
'orderNumber' => '2939',
'orderKey' => '2939',
'orderDate' => '2020-07-28T00:00:00.0000000',
'createDate' => '2020-07-28T10:58:35.3600000',
'modifyDate' => '2020-10-20T06:39:30.0070000',
'paymentDate' => '2020-07-28T10:58:34.0000000',
'shipByDate' => NULL,
'orderStatus' => 'awaiting_shipment',
'customerId' => 309926130,
'customerUsername' => 'REMOVED',
'customerEmail' => 'REMOVED',
'billTo' =>
stdClass::__set_state(array(
'name' => 'REMOVED',
'company' => '',
'street1' => 'REMOVED, ',
'street2' => 'REMOVED',
'street3' => '',
'city' => 'Austin',
'state' => 'TX',
'postalCode' => 'REMOVED',
'country' => ' ',
'phone' => 'REMOVED',
'residential' => NULL,
'addressVerified' => NULL,
)),
阵列转储:
$data[0]->订单号
就这样!泰!