$contents = file_get_contents("phone.vcf");
$str=str_replace(array("\r","\n"),'',$contents);
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
fwrite($myfile, $str);fclose($myfile);
$contents = file_get_contents("phone.vcf");
$str=str_replace(array("\r","\n"),'',$contents);
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
fwrite($myfile, $str);