Hi,
I need some assistance, just starting out to play with php and I need to know how to do this:
I have a variable which is a domain name, sometimes it can be domain.com, domain.net domain.whatever I need to know how to strip only what's after the dot and place it in another variable, for example com, net or whatever.
So:
If variable = domain.com then variable1 = .com and go there.
If variable = domain.net then variable1 = .net and go fuckyourself
What is the fastest why doing this?
Thanks!