Task: PHP CSV String to Array Parser
Task: PHP CSV String to Array Parser: a task in Terminal-Lego-15k (Harbor dataset). Write a PHP script that correctly parses a CSV string into a multi-dimensional array, handling the case where str getcsv() does not properly split rows separated by \r\n line endings.
The task
Write a PHP script that correctly parses a CSV string into a multi-dimensional array, handling the case where `str_getcsv()` does not properly split rows separated by `\r\n` line endings.
Part of PrimeIntellect/Terminal-Lego-15k.