Hello forum: I need help with the following PHP array within array shown in bold/italic below: $params = array(
"requestID" => "xxxxxxxx",
"account" => "xxxxxxxx",
"originPoint" => array('countryCode' => 'US', 'postalCode' => $from_zip),
"destinationPoint" => array('countryCode' => 'US', 'postalCode' => $to_zip),
"payor" => 'T',
"terms" => 'PPD',
"stackable" => 'N',
"baseCommodities" => array('commodity' => array('class' => 60, 'weight' => 1000) ),
"accessorials" => array("accessorialCode" => $accArray)
); The array(commodity needs to contain from 1 to n entries for class & weight. I've had no luck getting a solution for this today, I've been pulling my hair out all day and I don't have much to spare. Hope someone can help. Thanks, Larry
"requestID" => "xxxxxxxx",
"account" => "xxxxxxxx",
"originPoint" => array('countryCode' => 'US', 'postalCode' => $from_zip),
"destinationPoint" => array('countryCode' => 'US', 'postalCode' => $to_zip),
"payor" => 'T',
"terms" => 'PPD',
"stackable" => 'N',
"baseCommodities" => array('commodity' => array('class' => 60, 'weight' => 1000) ),
"accessorials" => array("accessorialCode" => $accArray)
); The array(commodity needs to contain from 1 to n entries for class & weight. I've had no luck getting a solution for this today, I've been pulling my hair out all day and I don't have much to spare. Hope someone can help. Thanks, Larry
Comment