PHP array syntax error -


this question has answer here:

i tried running array each time error

parse error: syntax error, unexpected '=', expecting ')' in c:\wamp\www\soap-service\anchorsoapclient.php on line 75

here php code:

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;         } 

and code in line 78:

$result = $this->soapclient->submitorder(array('so'=>array('flag_rush_order'=>'','date_ship_by'=0,'shipping_charge'=>0), 'so_detail'=> 

am not php.

check 'date_ship_by'=0,it should 'date_ship_by'=>0, have missed ")" @ end...

 $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')));   

Comments