• 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

Performance of foreach, array_map with lambda and array_map with static function

Dynamic dropdown Ajax PHP request

Multiple order by in WooCommerce

User pool client {id}does not exist

using random function but it's displaying duplicates

Best way to scrolldown onpageload

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

enable Apache http Authorization header

how to validate form data in codeigniter 4

wordpress : How to specify the cause "This site can’t be reached"

PHP if in_array() how to get the key as well?

ConstraintViolationListInterface to Exception in Symfony

laravel 5.6 bulk inserting json data

Undefined Array Key error when uploading image on php

Laravel 5.2: Unable to locate factory with name [default]

About Contact Privacy policy Terms and conditions