Hi, you will have to grep the output from curl_exec in a JSON decoded object like below:
$output = json_decode(curl_exec($ch));
This will give you a stdClass object.
{
"status": "success",
"txid": "the transaction id"
}
Access this object in PHP:
print $output->status;
print $output->txid;