Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
util.php
1<?php
2
4
5class Util
6{
7 public static function filterNumericIdList(array $idList = []): array
8 {
9 $idList = array_map(static function($value) {
10 return (int)$value;
11 }, $idList);
12
13 $idList = array_filter($idList, static function($value) {
14 return ($value > 0);
15 });
16
17 $idList = array_unique($idList);
18
19 return $idList;
20 }
21}
static filterNumericIdList(array $idList=[])
Definition util.php:7