This is some data
Case 1 "("2017-02-02 21:15:00",201,1,"E.CO-PUAS KAJANG/AC PANEL ETS",16977.00000)" Case 2 "("2017-02-02 21:15:00",201,6,"SPARE 6",)"
Im required to extract data without "(
, to store into 5 variable
$date = "2017-02-02 21:15:00";
$code = 201;
$id = 1;
$name = "E.CO-PUAS KAJANG/AC PANEL ETS";
$value = 16977.00000;
Note: SOME CASE like Case 2 return without value and set to 0
Please show me some example or tips. i found tutorial trim, but it only trim one time
I wanted output will be write like this
echo $date;
echo $code;
echo $id;
echo $name;
echo $value;