NLCJ Posted September 18, 2010 Share Posted September 18, 2010 Hello, I fetch information from an URL, and this is the output I get using cURL (there's no other way I can get it): 4377.54,11069.02,13.15,3,101,11342,1512492 Now I want to explode this, but I can't directly explode this using explode. How do I do this? Once I use curl_exec it is always displayed. Regards, NLCJ Link to comment https://forums.phpfreaks.com/topic/213767-exploding-with-curl/ Share on other sites More sharing options...
Alex Posted September 18, 2010 Share Posted September 18, 2010 You should use the option CURLOPT_RETURNTRANSFER to make curl_exec() return the value instead of outputting it directly. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $str = curl_exec($ch); Link to comment https://forums.phpfreaks.com/topic/213767-exploding-with-curl/#findComment-1112605 Share on other sites More sharing options...
NLCJ Posted September 18, 2010 Author Share Posted September 18, 2010 Awesome! Thanks! Link to comment https://forums.phpfreaks.com/topic/213767-exploding-with-curl/#findComment-1112608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.