• 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

Submitting a form with ajax in Wordpress

Which is faster php date functions or carbon?

Object of class stdClass could not be converted to string error

How to modify CSS in a specific page of the WP admin dashboard (backend)

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Redirect to previous page with php

Show date difference as "20" instead of "20 years ago"

Not able to access model in the controller mautic

Transform array, set each array element with parent key php

Create a zip file and download it

Assets not referencing to public folder (Laravel)

Read users and passwords from a txt file

Mysqli Output to a table

Laravel PHP: multiple project run at the same time [closed]

CONCAT columns with Laravel 5 eloquent

About Contact Privacy policy Terms and conditions