我在doc中添加了一个样式但是如果样式字体名称是在字上安装它不起作用!!! 我的字体是PersianFont
<div class="form-group has-feedback {{ if($errors->has('username')) { 'has-error' } else { '' } }}">
答案 0 :(得分:1)
$filename = "termekek.xls";
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Content-Type: application/vnd.ms-excel");
echo "\xEF\xBB\xBF"; // UTF8 BOM
$flag = false;
$result = mysqli_query($kapcs, $sql) or die('SQL error - '.mysqli_error($kapcs));
while ($row = mysqli_fetch_assoc($result)) {
if (!$flag) {
echo implode("\t", array_keys($row)) . "\r\n";
$flag = true;
}
array_walk($row, __NAMESPACE__ . '\cleanData');
echo implode("\t", array_values($row)) . "\r\n";
}
exit();