• 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

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Project structure for PHP

Reading input in php from terminal

PHP Find Array Index value in multi-line array

How to validate tin and cst using PHP?

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

Encrypt in php and decrypt in Dart(flutter)

Transfer data between JavaScript and PHP through JSON

Can't call javascript alert alertify library from PHP

How to separate letters and digits from a string in php

How to keep value of selected value after form submission?

Parameter is not sent to Laravel route in Ajax

PHP: Telegram Bot: Insert line break to text message

Custom API and cunsuming in php?

Laravel Multi-language routes without prefix

About Contact Privacy policy Terms and conditions