12 lines
265 B
PHP
12 lines
265 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
function parse_reports(): array
|
||
|
{
|
||
|
$raw = file_get_contents('./input.txt');
|
||
|
$lines = explode("\n", trim($raw));
|
||
|
|
||
|
return array_map(fn (string $line) => explode(' ', $line), $lines);
|
||
|
}
|
||
|
|
||
|
$reports = parse_reports();
|
||
|
print_r($reports);
|