I am parsing CSV's and I am having no problem reading the CSVs. The only problem is if the CSV has a negative number ex: -154.64 keeps coming back without the - and it's putting parenthesis around it: (154.64).
I need the correct way to turn this parenthesis number back into a negative number. I am inserting these numbers into my DB and if I try and put the (154.64) it just puts a positive number in the DB 154.64.
Thanks!
EDIT
Using Parse CSV
$csv = new parseCSV($_FILES['csvUpload']['tmp_name']);
foreach( $csv->data as $row ) :
print_r($row);
endforeach;
If there is a negative number it will show:
array (
margin => (123.65)
)
I Need
array (
margin => -123.65
)