<?php $mycsv = fopen("php://stdin", "r"); while (($data = fgetcsv($mycsv, 0, "|", "'")) == true) { print_r($data);}
"mydata1|mydata2|mydata3|my;data;with;ugly"char;|myprice|etc|etc|
Array ( [0] => "mydata1 [1] => mydata2 [2] => mydata3 [3] => my;data;with;ugly"char; [4] => myprice [5] => etc [6] => etc [7] => )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!