I am trying to break a curl response into an array. If I test the explode function using
<?php
$curl_result = "NOTICE: update_lead LEADS FOUND IN THE SYSTEM: |6666|||9549999999|9122|0";
$lead_info = explode("|", $curl_result);
print_r($lead_info);
?>
It works fine but when I actually try and use the returned curl result as below
$curl_result=curl_exec($ch);
curl_close($ch);
$lead_info = explode("|", $curl_result);
It does not work. I can echo the $curl_result and see that it is there.
Any thoughts?