<?php function clear_urlcan($url){ $rstr=''; $tmparr=parse_url($url); $rstr=empty($tmparr['scheme'])?'https://':$tmparr['scheme'].'://'; $rstr.=$tmparr['host'].$tmparr['path']; return $rstr; } ?>
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号