Created
August 12, 2013 09:40
-
-
Save osrecio/6209544 to your computer and use it in GitHub Desktop.
Read CSV - (PHP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$row = 0; | |
$j = 1; // Linea por la que quieres empezar | |
$file = "name.txt"; //Nombre del fichero | |
if (($handle = fopen($file, "r")) !== FALSE) { | |
while (($data = fgetcsv($handle, ",")) !== FALSE) { | |
print_r($data); | |
$j++; | |
$row++; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment