PHP Classes

PHP CSV Manipulation: Load and edit data in CSV files

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 372 All time: 6,787 This week: 206Up
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
Age: 34
All time rank: 226031 in Indonesia Indonesia
Week rank: 321 Up4 in Indonesia Indonesia Up

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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:372
This week:0
All time:6,787
This week:206Up