Answers for "number format thousand in laravel"

2

blade number format by comma

number_format(10000, 2, '.', ',');
// 10,000.00
Posted by: Guest on May-09-2021
0

Laravel Excel numbers formatted as text still appearing as number

I found a workaround by using setCellValueExplicit()
eg:

$sheet->setColumnFormat(array( //se formatea la columna a texto
    'C' => \PHPExcel_Style_NumberFormat::FORMAT_TEXT,
    'I' => 'dd-mm-yyyy hh:mm'
));

$sheet->setCellValueExplicit('C10', $object->card_number, \PHPExcel_Cell_DataType::TYPE_STRING);

Hope this helps ;)
Posted by: Guest on October-19-2020

Code answers related to "number format thousand in laravel"

Browse Popular Code Answers by Language