conditions, limit and offset are functional. conditions needs a rewrite tho.

added examples to trunk.


git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@13 339761fc-0c37-0410-822d-8b8cac1f6a97
This commit is contained in:
zynode
2007-08-08 18:48:11 +00:00
parent 82049f1701
commit 9c389ed0c1
5 changed files with 150 additions and 17 deletions

21
examples/limit.php Normal file
View File

@@ -0,0 +1,21 @@
<pre>
<?php
require_once('../parsecsv.lib.php');
$csv = new parseCSV();
# if sorting is enabled, the whole CSV file
# will be processed and sorted and then rows
# are extracted based on offset and limit
$csv->sort_by = 'title';
$csv->limit = 3;
$csv->offset = 2;
$csv->auto('books.csv');
print_r($csv->data);
?>
</pre>