can I only bold certain word on phpExcel in a single cell ?
$excel = new PHPExcel();
$excel->setActiveSheetIndex(0);
$row = 5;
//MERGE title
$excel->getActiveSheet()->mergeCells('A1:P1');
$excel->getActiveSheet()
->setCellValue('A1', 'How to bold certain word on phpexcel
');
$excel->getActiveSheet()->getStyle('A1:P1')->applyFromArray(
array(
'font'=> array(
'bold' => true,
'size' => 14,
'name' => 'Arial',
),
'borders' => array(
'allborders' => array(
'style'=> PHPExcel_style_Border::BORDER_THIN
)
)
)
);
if I'm using the code above I will have all my words bold, can i only have the words 'word on' bold ?