View Single Post
Old 01-23-2004, 05:26 PM  
Friday
Confirmed User
 
Join Date: Apr 2002
Posts: 157
Need PHP assistance, please help

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!
__________________
...
Friday is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote