Documentation

normalizeArrayValuesByInt

null public static
\Bitrix\Main\Type\Collection::normalizeArrayValuesByInt(
 array $map,
 boolean $sorted = true
);

Static method converts array values into integers, returns unique values > 0. In addition, sorts the array.

Parameters

ParameterDescriptionVersion
$mapArray for normalization
$sortedWhen true, result is sorted.

Example



© «Bitrix24», 2001-2024
Up