“phpspreadsheet” Kode Jawaban

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 SELECT Sheet

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

Jawaban yang mirip dengan “phpspreadsheet”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya