string into it's components?
eg: https://t.me/proxy?server=gg.proxy4free.club&port=8443&secret=dd9c8b6055bfa54133c980bf949495d258
should turn into
$output['server'] = gg.proxy4free.club;
$output['port'] = 8443;
$output['secret'] = dd9c8b6055bfa54133c980bf949495d258;
Have you checked parse_url() along with parse_str() ? $components = parse_url($url); parse_str($components['query'], $result); print_r($result);
Обсуждают сегодня