How to use fgetcsv where the input is a string and not a resource?
How to convert the string into a resource?
fgetcsv expects a file handle resource
$str = "1981;2992;19191\n392;488;299\n"some\ntext";199;222";
$array = fgetcsv($str);
Can not use str_getcsv because then I have to split the string by \n before str_getcsv.. If some of the fields contains \n then the output will be incorrect