<?php
include $_SERVER['DOCUMENT_ROOT']."/include/config.php";
$text = '/check c465ea378a4f';
preg_match('~/check ([a-z0-9]+)~i', trim($text), $preg);
print_r($preg);
foreach ($preg as $key => $value) {
$sql = $db->query('UPDATE `orders` SET `chat_id` = 123456 WHERE `orders`.`identify` = "'.$value.'"');
}
//echo print_r($preg);
//$idet = 1;