I have a CSV file and using fgetcsv I can happily generate each line as an array.
Pipes indicate structure and cell division, commas in the below are commas that are part of the input and need to be preserved.
abc,456|5hs6|dfdsf,56
abc,456|5hs6|dfdsf,56
abc,456|5hs6|dfdsf,56
abc,456|5hs6|dfdsf,56
Given that commas would be used in the data as shown, it would be better to separate using pipes.
Array(
[0] => abc,456|5hs6|dfdsf,56
[1] => abc,456|5hs6|dfdsf,56
[2] => abc,456|5hs6|dfdsf,56
[3] => abc,456|5hs6|dfdsf,56
)