• 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

Laravel websockets AWS EC2 - Connection failed

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

phpseclib 2.0 can not use Composer to create autoload

Two buttons one form

Convert regular text to array using notepad++

Laravel Nova, route not found

Natural ORDER in Laravel Eloquent ORM

PHPExcel How to set conditional formatting to change cell background color based on cells values

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

Debugging Stripe Webhook Event

How to convert a carbon into string, to take the date only?

how to upload binary image to sql server using php laravel

How do I get friend list from Friends table with counts of friends of my friends

How to get multiple values with same key from an array PHP

php - add comma thousands separator but remove trailing zeros

About Contact Privacy policy Terms and conditions