How to remove period from a string?
Filed in Programming and Scripting on Jan.06, 2009
How to remove period from a string?
for example: www.domainname.com
It needs to be ‘wwwdomainnamecom’
Solution:
$Newdomainname = ereg_replace(’.’, ”, $domainname);
or
$Newdomainname = str_replace(’.’, ”, $domainname);
VN:F [1.0.8_357]please wait…Rating: 7.0/10 (1 vote cast)
