<?php
header("Content-type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: filename=descarga_importacion_".date("Y-m-d").".xls");
header("Pragma: no-cache");
header("Expires: 0");

echo str_replace('\"','"',$_POST['datos_a_enviar']);
?>