mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Update DatatypeTrait.php
This commit is contained in:
@@ -23,11 +23,7 @@ trait DatatypeTrait {
|
|||||||
* @return string|false
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
private function getMostFrequentDataypeForColumn($datatypes) {
|
private function getMostFrequentDataypeForColumn($datatypes) {
|
||||||
array_filter($datatypes);
|
array_filter($datatypes);
|
||||||
|
|
||||||
foreach ($datatypes as $value) {
|
|
||||||
echo gettype($value), "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// workaround because array_count_values($datatypes) does not work anymore :-(
|
// workaround because array_count_values($datatypes) does not work anymore :-(
|
||||||
foreach ($datatypes as $type) {
|
foreach ($datatypes as $type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user