<?php

$mycsv = fopen("php://stdin", "r");

while (($data = fgetcsv($mycsv, 0, "|", "'")) == true) {
   print_r($data);
}
