“PHPSPREADSheet” Code-Antworten

PHPSPREADSheet

<?php

require 'vendor/autoload.php';

use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;

$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
$sheet->setCellValue('A1', 'Hello World !');

$writer = new Xlsx($spreadsheet);
$writer->save('hello world.xlsx');
Lovely Lapwing

PHPSPREADSHEET Wählen Sie Blatt aus

//By sheet position index
$spreadsheet->getSheet(0)
//By sheet name
$spreadsheet->getSheetByName('Sheet 1')
Marco Tellez

Ähnliche Antworten wie “PHPSPREADSheet”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen