;', '', $s); }; $colCount = count($header); $colWidths = []; for ($col = 0; $col < $colCount; $col++) { $colWidths[$col] = strlen($stripMeta($header[$col])); foreach ($rows as $row) { $colWidths[$col] = max($colWidths[$col], strlen($stripMeta($row[$col]))); } } $mkRow = function ($row) use ($colWidths, $stripMeta) { $buf = ''; foreach ($row as $col => $cell) { $buf .= '| '; $buf .= $cell; $buf .= str_repeat(' ', $colWidths[$col] - strlen($stripMeta($cell))); $buf .= ' '; } $buf .= '|'; return $buf; }; $bold = function ($c) { return "$c"; }; $hrPattern = '+'; for ($col = 0; $col < $colCount; $col++) { $hrPattern .= str_repeat('-', 2 + $colWidths[$col]) . '+'; } $buf = ''; $buf .= $hrPattern . "\n"; $buf .= $mkRow(array_map($bold, $header)) . "\n"; $buf .= $hrPattern . "\n"; foreach ($rows as $row) { $buf .= $mkRow($row) . "\n"; } $buf .= $hrPattern . "\n"; return $buf; } } __halt_compiler();----SIGNATURE:----kuDLg+m3KwgoG9Fszz3wSLYzeiQrCRCFlG6KgHnfnGDVFlcRfYfnxGePGX5d0thIC1hQHCGvk01OiYi97srNJlg9aXHOP5dlg/ITDTGtJ3o+xdMZMCWqFrGBzlVOCFXTC3V+5yFNqQKtL2uRzApuZqbJ9r1dM24wM6ZNz6vILwS2sdmqEvfd18CsghZEGzxtw9rhsOF1/kh3zZw09FTIieBHWhkWbqkhMSeRAQ1lU2pR9LNV/Dlfkz5itg8nDJLXJcOzkB13LdL/w3n2hQ05eRjFzRMZRv7u0yb5QqonRt/a1Kj+UYgsRRtvPYkW8dIBeEQ1PpKKm11yhmf/2ue6UAZLGdi22OBOS4AX2ceuYg0TMshL/HLXLOx9vnh/RNb54jG22WCEDWpD9UxTC8EBrgk7Ze2rsg6UAO5v1asEctDenMcHa5CGUQu+7R7YHx03A4lqWcM7AAsPvyxhTmDfxdhZo2ZGTEe2r8StXf5RzTa1e7K6gGW/dCMAKIKRYVb2KJjwVY1GSH6BzO58TDV9ARPWCxCkcJ9V2tl+F0miSIZIh6v9jjc7RsY3MR3tQqKuoNWjCacp6s6feZnXjFZpbigBBG5ang/LYNTyUeEKGZQu8mh91t5aGDy8zshoA8fHL+n7lSPJ1CRY6IFKwTEGGHcaIOlG3WfdblwhoVsCWF8=----ATTACHMENT:----MzIyMzQ1NjUyOTU0NjgyOSA5NzEwNDIxOTk1OTQyODQwIDU4NjMwMjIwNjA5MTU5NDc=