Login   Register  
PHP Classes
elePHPant
Icontem

File: exemplo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Enio Borges Ribeiro  >  Simple CSV Reader  >  exemplo.php  >  Download  
File: exemplo.php
Role: Example script
Content type: text/plain
Description: Script de Exemplo
Class: Simple CSV Reader
Read and sort CSV file data into array
Author: By
Last change:
Date: 4 years ago
Size: 331 bytes
 

Contents

Class file image Download
<?php
require "CsvToArray.Class.php";
 
foreach (
CsvToArray::open('teste.csv') as $c)
 {
     
$nome                $c[0];
     
$empresa           $c[1];
     
$cidade            $c[2];
     
$estado            $c[3];
     
$endereco           $c[4];
     
$numero            $c[5];
     
$complemento    $c[6];
     
$bairro            $c[7];
     
$cep                $c[8];
     
$pais                $c[9];
 }
?>