https://**********.ru/files/products/320.200x200.jpg?5d24e028f101ce05eaae6572ac77333a
function dropUrlQuery(string $url = ''): string
{
$position = strpos($url, '?');
if($position) {
$url = substr($url, 0, $position);
}
return $url;
}