22 lines
445 B
PHP
22 lines
445 B
PHP
<?php
|
|
class SortimentParser {
|
|
|
|
//
|
|
// $f = fileName
|
|
//
|
|
// Returns array of "sortiment" items.
|
|
//
|
|
// @retVal = array()
|
|
//
|
|
public function fromPlainTextFile($fp) {
|
|
$retVal = array();
|
|
//$fPath = "./data/sortiment.csv";
|
|
|
|
$f = fopen($fp,"r");
|
|
while($l = fgetcsv($f)) {
|
|
$retVal[] = $l;
|
|
}
|
|
|
|
return $retVal;
|
|
}
|
|
} |