collection-crud/tools/common.inc.php

10 lines
145 B
PHP
Raw Normal View History

2022-03-03 10:19:01 -05:00
<?php declare(strict_types=1);
function walk_array(callable $method, array $items): void
{
2023-07-21 10:35:15 -04:00
foreach ($items as $item)
{
$method($item);
}
2022-03-03 10:19:01 -05:00
}