Can someone tell me how to simply make a line break within the same cell when exporting a .xls file using PHP? I've tried with \n, \t, \r, but none of them seems to work.
My code is short and simple:
ob_end_clean();
$filename ="test_doc.xls";
header('Content-type: application/ms-excel');
header('Content-Disposition: attachment; filename='.$filename);
echo "I\nWANT\nTHIS\nTO\nBE\nWITHIN\nTHE\nSAME\nCELL";
exit;