Multiple formatters php mysql server side
Multiple formatters php mysql server side
![roadjan](https://secure.gravatar.com/avatar/40f11d9e82b351ac658506774f130c3f/?default=https%3A%2F%2Fvanillicon.com%2F40f11d9e82b351ac658506774f130c3f_200.png&rating=g&size=120)
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.