Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$range="A1:J10"; $sheet->setBorder($range);
しかし、このように、サーバーはエラーを出します
問題には次のコードを使用できます。
$range = "A1:J10"; $sheet->setBorder($range, 'thin');
または、これを使用できます:
$range = "A1:J10"; $sheet->cells($range, function($cells) { $cells->setBorder('thin', 'thin', 'thin', 'thin'); });