Esempio n. 1
0
 function toArray($content, $fields = array(), $num_fields = 0, $method = 1, $params = '')
 {
     $result = array();
     switch ($method) {
         case 1:
             // explode method
             $result = TiendaCSV::toArrayExplode($content, $fields, $num_fields, $params);
             break;
         case 2:
             // our own method
             $result = TiendaCSV::toArrayOur($content, $fields, $num_fields, $params);
             break;
     }
     return $result;
 }