Skip to content
Advertisement

Tag: io

php://memory IO stream and fgetcsv()

I want to parse csv-like string so I can emulate csv and assert it into a test case. But it won’t parse into arrays. This is the output: Answer Remove the rn, not needed Your moving the pointer twice per loop, change to $parsed[] = $data

Advertisement