Hello,
[php]$arr = array(“aaa” => 1, “bbb” => “test”, “ccc” => 0, “ddd” => 0, “eee” => 0, “fff” => 1);[/php]
[php] $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, count($arr));
curl_setopt($ch, CURLOPT_POSTFIELDS, $arr);
curl_setopt($ch, CURLOPT_TIMEOUT,300);
$out = curl_exec($ch);
$output = trim($out);
curl_close($ch);[/php]
[php]echo $output[/php]
Output:
Array( [aaa] => 1 [bbb] => test [ccc] => 0 [ddd] => 0 [eee] => 0 [fff] => 1)Action successful
Ok message this: Action successful
Why array are returned? Where am I doing wrong?
Thanks