Is there a built in function to retrieve domain name of url in PHP?

dungeon_keeper

New Member
If the url is \[code\]http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAsQFjAA&url=https%3A%2F%2Fwww.google.com%2Fadsense%2F&ei=1AdLS5HSI4yQ6APt6Ly-BQ&usg=AFQjCNHKn8TzGhRO1eUfLhB79AVU-_FnGQ&sig2=EGlbrGQ3jTQdTViEt14cYg\[/code\],I need the result to be :\[code\]google.com\[/code\]
 
Back
Top