note 71605 deleted from function.explode by nlopess
| From: | nlopess@php.net | Date: | Thu, 07 Dec 2006 18:16:05 +0000 |
| Subject: | note 71605 deleted from function.explode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120402@lists.php.net to get a copy of this message | ||
Note Submitter: mrzebu (attatat) gmail dut com
----
Was investigating long time how to split headers and response after got result from fsockopen().
The next piece of code saved me:
list($headers, $result) = explode("\n\r", $result, 2);
print $result;
EVEN
list($headers, $result) = explode("\n\r\n $result, 2);
print $result;
Previously I used \n\n and that did not work.
P.S.: I am working on paypal implementeation.
Thanks.