Splitting by a semicolon not surrounded by quote signs
问题 Well, hello community. I'm workin' on a CSV decoder in PHP (yeah, I know there's already one, but as a challenge for me, since I'm learning it in my free time). Now the problem: Well, the rows are split up by PHP_EOL . In this line: foreach(explode($sep, $str) as $line) { where sep is the variable which splits up the rows and str the string I wanna decode. But if I wanna split up the columns by a semicolon there might be a situation where a semicolon is content of one column. And as I