I have a large DBF file that I would simply like to read like a .csv or .txt file by converting it into an array.
$file = file_get_contents('data.dbf');
Doing this just imports it as one huge blob of text. I tried
explode("\n\r", $file);
but that doesn't seem to work either as it treats it like one giant string with no line breaks. Excel btw reads it perfectly.
I don't have the dbase extension installed (not even sure if I can do that easily). Is there any other way I can read it properly line-by-line?