Alright so I am just starting to learn cURL and I am having a really hard time with this at the moment I am not sure if I am just not understanding something properly or if it's just not working at all..

PHP Code:
//objekt array
$TStringError = array(
'storeId'   => 'ID',
'items'             => 'ID',
'pType'             => 'PType'
); 
I am not sure if when writing curl if I am suppose to fill out the fields or have it echo it into another location.. I am going off of a forum post and the guy did not explain it very well at all.

PHP Code:
$cookies = array(
//detta ar dina inkops cookies
'anx'           => 'UniqueCookie'
);

curl_setopt ($chCURLOPT_COOKIE,
//begagnade cookies ga hit
"Användar Cookies Go Here" 
It's suppose to work along the lines of me checking out an item from my own store using curl how ever.. it's not working like that at all I am just getting error after error after error and not completely sure how to fix it.

PHP Code:
$ch curl_init();
curl_setopt($chCURLOPT_URL"http://www.example.com/purchased");
curl_setopt($chCURLOPT_RETURNTRANSFER1);
curl_setopt($chCURLOPT_POSTtrue);
curl_setopt($chCURLOPT_TIMEOUT5);
curl_setopt($chCURLOPT_USERAGENT"MozillaXYZ/1.0");
//objekt array
$TStringError = array(
'storeId'   => 'ID',
'items'             => 'ID',
'pType'             => 'PType'
);
$cookies = array(
//detta ar dina inkops cookies
'anx'           => 'UniqueCookie'
);

curl_setopt($chCURLOPT_COOKIE$cookies);
//begagnade cookies ga hit
"Användar Cookies Go Here"

curl_setopt($chCURLOPT_POSTFIELDS$TStringError);
$output curl_exec($ch);
curl_close($ch);
$xml simplexml_load_string($output);
print_r($xml,1);
echo(
"done\n");
echo(
$output); 
This is currently my entire code how ever this code is giving me multiple errors

PHP Code:
curl_setopt($chCURLOPT_POSTFIELDS$TStringError); 
Is giving me an error with T-Strings how ever I have searched my code multiple times and see no issues with it at all.

Edit:

This is the exact error that it's giving me.

PHP Code:
Parse errorsyntax errorunexpected T_STRING in /home/a9428267/public_html/testing.php on line 24
Line 24 is 
PHP Code:
curl_setopt($chCURLOPT_POSTFIELDS$data);