Return to Snippet

Revision: 33755
at October 13, 2010 01:10 by thiswayup


Initial Code
$retrieveResult = preg_replace('/
|\r/', "\n", $retrieveResult); 
     $retrieveResult = explode("\n", $retrieveResult);

Initial URL
joelee.me.uk

Initial Description
useful in conjunction  with curl and examining headers

Initial Title
exploding a string by line breaks accounting for cross platform

Initial Tags
regex

Initial Language
PHP