<?php $headers = "Content-Type: foo/bar\r\nHost: foo.com\r\n"; print_r(preg_split('/[\r\n]+(?=\S)/', trim($headers), -1, PREG_SPLIT_NO_EMPTY));
You have javascript disabled. You will not be able to edit any code.