\Bitrix\Main\Loader::includeModule('sale');
$date = new \Bitrix\Main\Type\Date();
$date->add('-2 year');
$userDataByOrders = \Bitrix\Sale\Order::getList([
'filter' => ['>DATE_INSERT' => $date->toString()],
'select' => ['USER_ID', 'USER_INFO_' => 'USER'],
'group' => ['USER_ID']
]);
$userData = $userDataByOrders->fetchAll();
$GLOBALS['arrFilter'] = array("PROPERTY_ARCHIVE" => 123);
$GLOBALS['arrFilter'] = array("PROPERTY_ARCHIVE_VALUE" => 'Активное');
SELECT `id`, `name`, SUBSTR(`text`, 1,20) AS `text` FROM `articles` ORDER BY `id` DESC
SELECT *, SUBSTR(`text`, 1,20) AS `shorttext` FROM `articles` ORDER BY `id` DESC
CREATE TABLE users (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
login VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL
);
isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || PHP_SAPI === 'cli-server')
false
|| false
|| !(false || false)
false
|| false
|| !false
false
|| false
|| true
true
!in_array()
появилось, если выражение оригинальное другое совсем.