/** * Modified version of the code at the site below: * @see http://www.pyrosoft.co.uk/blog/2007/07/01/php-array-to-text-table-function/ */ public static function tableOutput($table) { if (Wiz::getWiz()->getArg('batch')) { return Wiz::batchOutput($table); } else { return Wiz::prettyTableOutput($table); } }