PHP Classes

PHP CSV Manipulation: Load and edit data in CSV files

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 373 All time: 6,782 This week: 49Up
Version License PHP version Categories
csv-manipulation 1.0GNU General Publi...5.2PHP 5, Files and Folders
Description 

Author

This class can load and edit data in CSV files.

It can parse a given CSV file and store its data in array variables, so it can retrieve data in given line and column.

The class can also change the values in given lines and columns and save the changes back to the original file.

Picture of Afif Ahmad Hidayat
  Performance   Level  
Name: Afif Ahmad Hidayat <contact>
Classes: 5 packages by
Country: Indonesia Indonesia

Example

<?php
include_once "CSV_Data.php";
$data = new CSV_Data(dirname(__FILE__).'/coba.csv');
echo
$data -> get("en_US", "code1");
//edit data
$data -> edit("en_US", "code1", "Data Edited");
$data -> save();


  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file coba.csv Data auxilary data
Accessible without login Plain text file CSV_Data.php Class Main Class
Accessible without login Plain text file example.php Example example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:373
This week:0
All time:6,782
This week:49Up