|
Posted by Eric Rechter on 08/04/06 10:52
Hi,
I only want to display the provider name from a hostname, so I need to
divide the string to take only de characters from after the before last dot.
For example:
dsl-083-247-088-130.solcon.nl -> I only wanna display "solcon.nl"
adsl-dc-4d454.adsl.wanadoo.nl -> I only wanna display "wanadoo.nl"
I tried with "substr()", but than you have to know the exact positions, and
that's different in a hostname.
Anybody knows if this possible?
kind regards,
Eric
Navigation:
[Reply to this message]
|