xxxxxxxxxx
$arr = array ( 0 => "lorem", 1 => "ipsum", 2 => "dolor");
$str = implode (", ", $arr);
xxxxxxxxxx
function stringToArrayFin($file){
$expData = explode('","',$file);
$dataArray = array();
$i=1;
$nR = array();
foreach($expData as $nData){
if($i<=14){
$nR[]=$nData;
}
$i++;
if($i==15){
$dataArray[]=$nR;
$nR = array();
$i=1;
}
}
return $dataArray;
}
xxxxxxxxxx
<?php
$number = 1234.56;
// english notation (default)
$english_format_number = number_format($number);
// 1,235
// French notation
$nombre_format_francais = number_format($number, 2, ',', ' ');
// 1 234,56
$number = 1234.5678;
// english notation with a decimal point and without thousands seperator
$english_format_number = number_format($number, 2, '.', '');
// 1234.57
?>