Reputation: 1381
I need to print CURL headers as a raw string, so with all of the \n
and \r
anyone could tell me how to?
I tried print_r
and few other but it hasn't worked
Upvotes: 1
Views: 10273
Reputation: 7946
I'm not really sure exactly what you're after, but you might try:
$headers = str_replace(array("\r","\n"),array("\\r","\\n"),$headers);
Upvotes: 3