I have am XML query sent through cURL. The query that is sent returns another xml file which contains more info (for credit reports i.e., you send a name, ssn etc and get back the result)
The problem is the reult comes back like this: "Firstname lastname ssn otherinfo .. . . . ."
I think the explode function would work well with this but first I need to convert the cUrl result into a a variable..
I am not sure how to do this, here is my code.
$URL="www.thetesturl.com";
$result = curl_exec($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://$URL");
curl_setopt($ch, CURLOPT_POST, 1);
$hmm = curl_setopt($ch, CURLOPT_POSTFIELDS, "query=$Data");curl_exec ($ch);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_close ($ch);
echo "<br />";
$cut = explode(" ", $result);
echo $cut[0];
echo $cut[1];
echo $cut[2];
echo $cut[3];
echo $cut[4];
echo $cut[5];
any ideas?