Permalink
Browse files

applied namespace to csv parser.

  • Loading branch information...
pmeth committed Feb 27, 2012
1 parent 309cbaa commit 9f5ed4a38c7de384cb411392337ae10431f0276b
Showing with 2 additions and 2 deletions.
  1. +1 −1 library/Pmeth/Common/CSVIterator.php
  2. +1 −1 readcsv.php
@@ -4,7 +4,7 @@
* Original from: http://snipplr.com/view/1986/
*/
class CSVIterator implements Iterator {
class CSVIterator implements \Iterator {
const ROW_SIZE = 4096;
private $filePointer;
View
@@ -14,7 +14,7 @@
*/
// Option 2
$csv = new CSVIterator('../uploads/sample2.txt');
$csv = new \Pmeth\Common\CSVIterator('../uploads/sample2.txt');
foreach($csv as $line) {
print_r($line);

0 comments on commit 9f5ed4a

Please sign in to comment.