wiki/content/20201113181235-horizontaltable.md

409 B

date id title
20201113 5bae3aba-682a-4e09-b6b5-e71fabd8072d horizontalTable()

Syntax

use Symfony\Component\Console\Style\SymfonyStyle;

protected function execute(InputInterface $input, OutputInterface $output)
{
    $io = new SymfonyStyle($input, $output);
    $io->horizontalTable(
        ['ISBN', 'Title', 'Author'],
        [
            // ... the rows ...
        ]
    );
}