CSV format practical testing.

This commit is contained in:
Povilas Brilius 2020-05-01 19:12:32 +03:00
parent 4a05355b9c
commit e5f4e5e30d
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ if (count($argv) > 1) {
for ($i = 0; $i < $days; $i++) {
echo("-------- day $i --------\n");
echo("name, sellIn, quality\n");
echo("name\tsellIn\tquality\n");
foreach ($items as $item) {
echo $item . PHP_EOL;
}

View File

@ -49,6 +49,6 @@ final class Item
*/
public function __toString()
{
return "{$this->name}, {$this->sell_in}, {$this->quality}";
return "{$this->name}\t{$this->sell_in}\t{$this->quality}";
}
}