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 Quote 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); Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/213767-exploding-with-curl/#findComment-1112608 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.