Multiple formatters php mysql server side
Multiple formatters php mysql server side
roadjan
Posts: 22Questions: 6Answers: 0
in DataTables
array(
'db' => 'some_data',
'dt' => 3,
'formatter' => function( $d, $row ) {
return str_replace(';;', '', $d);
}
),
How do I add multiple formatters to this column? I first do a string replace to remove multiple semicolons (whihc works) and then I want to replace the semicolon with a <br> tag. I am assuming need multiple formatters for this column but can't find out how to do that.
This question has an accepted answers - jump to answer
Answers
Thank you @tangerine much appreciated.