• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/Calc/Libs/StringLib.php
  • Класс: BitrixBizprocCalcLibsStringLib
  • Вызов: StringLib::callTrim
public function callTrim(Arguments $args)
{
	$array = $args->getFlatArray();

	$result = [];
	foreach ($array as $str)
	{
		if (is_scalar($str) || (is_object($str) && method_exists($str, '__toString')))
		{
			$result[] = trim((string)$str);
		}
	}

	return count($result) > 1 ? $result : ($result[0] ?? '');
}