K
K
krauze6662022-04-22 05:49:02
1C-Bitrix
krauze666, 2022-04-22 05:49:02

Bitrix, how to share variables?

for example, the price of a product is stored in the $minPrice['PRINT_DISCOUNT_VALUE'] variable,
how can I divide it and display it on the page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Vayti, 2022-04-23
@vitvayti

Arithmetic operators
https://www.php.net/manual/en/language.operators.a...

$a = $minPrice['PRINT_DISCOUNT_VALUE'];
$b = 2;
$printPrice = a / b;
echo $printPrice;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question