开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜