开发者

Use php to trim URL to just domain name by removing protocol and path

开发者 https://www.devze.com 2022-12-18 08:19 出处:网络
Given \"http://google.com/path-to-page\" trip to \"google.com\" What php and regex would开发者_如何学Python be appropriate?Use parse_url and get the host part.

Given "http://google.com/path-to-page" trip to "google.com"

What php and regex would开发者_如何学Python be appropriate?


Use parse_url and get the host part.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号