is there a way i can get the domain name only from a url.

for example if i have this string

$string = 'http://www.wallpaperama.com';

i only want to get the domain name from this string so it will become this:

$string = 'wallpaperama.com';

how can i do that?