grep -r '$siteLanguage' /site/root/*
$arr2 = array_combine(array_column($arr, 'sku'), $arr);
$result = array_map(fn($n) => $arr2[$n], $torgPred);
$result = array_filter($arr, fn($n) => in_array($n['sku'], $torgPred));
If the id value is not the empty string, it must be unique in a document.
let name = prompt("Enter your name:",);
let age = +prompt("Enter your age:",);
var x;
function checkAge(age){
if(age >= 1 && age <= 17) {
x = "Ребенок";
} else if(age >= 18 && age <=100) {
x = "Не ребенок";
}
}
function about(name, age) {
checkAge(age);
alert(`${name} имеет возраст ${age} и он ${x}`);
}
about(name, age)
\Bitrix\Catalog\Model\Price::update($PriceId,$arPrice);
который вы используете для обновления, использовать что-то вроде:\Bitrix\Catalog\Model\Price::add(array(
'CATALOG_GROUP_ID'=>$PriceId,
'PRODUCT_ID'=>$ProductId,
'PRICE'=>$Price,
'CURRENCY'=>'RUB',
));