• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

generate an Excel file using PHP

phpexcelweb-applications


PHP Snippet 1:

//define separator (defines columns in excel & tabs in word) 
$sep = "\t"; //tabbed character 
$fp = fopen('database.xls', "w"); 
$schema_insert = ""; 
$schema_insert_rows = ""; 
//start of printing column names as names of MySQL fields

Related Snippets

PHP Array split string and Integers

I'm trying to use curl with php but getting this error:Could not resolve host: Bearer

The "client_reference_id" argument is not passed

Undefined variable in Laravel 8 project (php 7.4)

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

PHP: remove filename from path

PHP: Print caught exception like Xdebug

Assign output of PHP function to a variable

Dynamic table in HTML using MySQL and php

Convert every two values of an associative array into key-value pairs

Render the content of default_filter.php in Joomla front-end

Shopify password update using Shopify API

How to install php yaml on CentOs?

Yii2 select2 database exception number of bound variables does not match number of tokens

Send same name multiple checkbox values via ajax

About Contact Privacy policy Terms and conditions