Php get domain without subdomain
Ngày đăng:
17/09/2022
Trả lời:
0
Lượt xem:
172
It is not possible to get the domain name without using a TLD list to compare with as their exist many cases with completely the same structure and length:
Mozilla's public suffix list should be the best option as it is used by all major browsers: Feel free to use my function:
What it makes special:
Test:
Recent version with explanations (German): |