wiki/content/20201113181235-horizontaltable.md

23 lines
411 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-13
2024-05-06 20:40:05 +00:00
id: 5bae3aba-682a-4e09-b6b5-e71fabd8072d
title: horizontalTable()
---
# Syntax
``` php
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 ...
]
);
}
```