10 lines
145 B
PHP
10 lines
145 B
PHP
<?php declare(strict_types=1);
|
|
|
|
function walk_array(callable $method, array $items): void
|
|
{
|
|
foreach ($items as $item)
|
|
{
|
|
$method($item);
|
|
}
|
|
}
|