15 lines
379 B
PHP
15 lines
379 B
PHP
<?php
|
|
class TabulizerModifyReplaceemptycell {
|
|
function modify(&$rows, $args = null) {
|
|
if (empty($rows)) {
|
|
return;
|
|
}
|
|
$replace_str = (isset($args))?$args:' ';
|
|
foreach ($rows as &$row) {
|
|
foreach ($row as &$cell) {
|
|
if ($cell == '') $cell = $replace_str;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
?>
|