I fetch the csv data using file_get_contents() and explode to make an array
i got array
my code
<?php
$csvcontent = file_get_contents($url);
$csv_array = explode($lineseparator,$csvcontent);
$csv_array = array_filter($csv_array);
?>
I got array
Array ( [0] => 2018-06-03,4477651688.19,163280,1.30288e+11,7632.09,4851760000.0,2037.5,15.3074038,531463,4.30694957398e+12,285966,246.271822195,1.356e-05,
[1] => 2018-06-04,7925996820.24,209733,1.31847e+11,7722.53,4993170000.0,2287.5,20.71075272,702904,4.30694957398e+12,341314,310.568030875,1.373e-05,
[2] => 2018-06-05,5821973644.02,212726,1.28081e+11,7500.9,4961740000.0,2187.5,18.52827963,655694,4.41559334167e+12,348466,305.3316354,1.531e-05
)
How to change the scientic notation to decimal in php array
original number in csv is 0.00001356 . whilw i get using file_get_contents() . i got 1.356e-05. whil i use (float) $num or ($num + 0) it gives 1.356E-05. i need full number 0.00001356