PHP数组语法错误


PHP array syntax error

我试着运行这个数组,但每次我都会得到这个错误

分析错误:语法错误,意外的"=",在C:''wamp''www''soap-service''AnchorSoapClient.php的第75行中应为")"

这是我的PHP代码:

public function submitorder(){
            $this->init(); 
            $result = $this->soapClient->SubmitOrder(array('SO'=>array('Flag_Rush_Order'=>'','Date_Ship_By'=>0,'Shipping_Charge'=>0), 'SO_Detail'=>array('SalesOrderDetail'=>
                array('Product_Seq_Id'=>0,'Order_Quantity'=>0,'Ship_Quantity'=>0,'Unit_Price'=>0,'Discount'=>0,'Extension'=>0,'Customer_ID'=>''),'Flag_All_Complete'=>'','Ship_method_Seq_Id'=>0,'Store_Name'=>'','Store_Message'=>'','Store_Street'=>'','Store_City'=>'','Store_State'=>'','Store_Zip'=>'','Store_Country'=>'','Intl_Tax_Number'=>'','Intl_Tax_Description'=>'Intl_Tax_Description','Intl_Tax_Amount'=>0,'Special_Instruction'=>'','Date_Shipped'=>'Date_Shipped'));  
            return $result;
        }

这是第78行的代码:

$result = $this->soapClient->SubmitOrder(array('SO'=>array('Flag_Rush_Order'=>'','Date_Ship_By'=0,'Shipping_Charge'=>0), 'SO_Detail'=>

我不太擅长PHP。

检查'Date_Ship_By'=0,应为'Date_Ship_By'=>0,你错过了结尾的")"。。。

 $result = $this->soapClient->SubmitOrder(array('SO'=>array('Flag_Rush_Order'=>'','Date_Ship_By'=>0,'Shipping_Charge'=>0),
    'SO_Detail'=>array('SalesOrderDetail'=> array('Product_Seq_Id'=>0,'Order_Quantity'=>0,'Ship_Quantity'=>0,                    'Unit_Price'=>0,'Discount'=>0,'Extension'=>0,'Customer_ID'=>''),    'Flag_All_Complete'=>'','Ship_method_Seq_Id'=>0,'Store_Name'=>'','Store_Message'=>'',    'Store_Street'=>'','Store_City'=>'','Store_State'=>'','Store_Zip'=>'','Store_Country'=>'',    'Intl_Tax_Number'=>'','Intl_Tax_Description'=>'Intl_Tax_Description','Intl_Tax_Amount'=>0,'Special_Instruction'=>'','Date_Shipped'=>'Date_Shipped')));