strlen($email) < 51
. $one = 3;
$two = 4;
$link = [0 => &$one, 1 => &$two];
$link[0] = 1;
$link[1] = 2;
echo $one."\n";
echo $two."\n";
$_buf = array(
"LINK.USLUGI" => "/page/uslugi",
"LINK.CONTACT" => "/contact",
"EMAIL" => "email@domain.zone",
"TG.CANNEL" => "https://t.me/cannel",
"TG.PERS" => "https://t.me/",
"VK.PERS" => "https://vk.com/id",
"VK.GROUP" => "https://vk.com/group"
);
$buffer = ob_get_contents();
foreach($_buf as $k => $v)
{
$buffer = str_replace("{{ {$k} }}", $v, $buffer);
}
ob_end_clean();
echo $buffer;
$names = ["num1"=> "1-число:", "num2"=> "2-число:"];
$default = ["num1"=> "По умолчанию", "num2"=> "По умолчанию"];
$equals = 0;
foreach($names as $key => $items){
if(isset($_GET[$key]) && is_number($_GET[$key]) ){
$default[$key] = $_GET[$key];
}
echo "$items ".htmlentities($default[$key])."<br>\n";
}
$equals = $default["num1"] * $default["num2"];
echo "Равно: ".$equals."<br>\n";
$link = "<a href='https://securepayments.sberbank.ru/payment/docsite/payform-1.html?token=ТОКЕН&def=".urlencode("{'amount':'".$arResult["ORDER"]["PRICE"]."'}")."&def=".urlencode("{'description':'Оплата по заказу ".$arResult["ORDER"]["ACCOUNT_NUMBER"]." от ".$arResult["ORDER"]["DATE_INSERT"]->toUserTime()->format('d.m.Y H:i')."'}")."&def=".urlencode("{'email':'".$USER->GetEmail()."'}")."&lang=ru'>Ссылка на оплату</a>";
<html>
<head>
<title>Делаем редирект, ждите</title>
<meta http-equiv="refresh" content="5;url=https://example.com/thank-you.html">
</head>
<body>
Сейчас будет переход, сидите ждите 5 секунд, никак не меньше!
</body>
</html>