$date1 = strtotime('2021-02-21 22:04:47');
$date2 = strtotime('2021-02-23 14:15:50');
var_dump($date1 < $date2);
var_dump($date1 == $date2);
var_dump($date1 > $date2);
<?php if (isset($arResult['PROPERTIES']['VIDEO']['VALUE'])): ?>
<iframe class="media__iframe"
<?php
$url = $arResult['PROPERTIES']['VIDEO']['VALUE'];
if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/\s]{11})%i', $url, $match)) { $video_id = $match[1]; } ?>
<?php echo 'src="https://www.youtube.com/embed/'.$video_id.'"' ?>
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
<?php endif; ?>
$token = "****************************************";
$chat_id = "***********";
$data = $_POST;
$arr = array();
$txt = '';
isset($data['user_name']) and $arr['Имя пользователя: '] = $data['user_name'];
isset($data['user_telegram']) and $arr['Telegram: '] = $data['user_telegram'];
isset($data['user_instagram']) and $arr['Instagram: '] = $data['user_instagram'];
isset($data['user_email']) and $arr['Email: '] = $data['user_email'];
isset($data['logo_1']) and $arr['Для чего нужен логотип: '] = $data['logo_1'];
isset($data['logo_2']) and $arr['Пожелания к логотипу: '] = $data['logo_2'];
isset($data['logo_3']) and $arr['Целевая аудитория: '] = $data['logo_3'];
isset($data['logo_4']) and $arr['Наличие материалов: '] = $data['logo_4'];
isset($data['logo_5']) and $arr['Примеры логотипов: '] = $data['logo_5'];
foreach($arr as $key => $value) {
$txt .= "<b>".$key."</b> ".$value."%0A";
};
$sendToTelegram = fopen("https://api.telegram.org/bot{$token}/sendMessage?chat_id={$chat_id}&parse_mode=html&text={$txt}","r");
if ($sendToTelegram) {
header('Location: thank-you.php');
} else {
echo "Error";
}