Mon Nov 16, 2009 7:25 am - How To Strip Numbers From String
#2756
How To Strip Numbers From String
i have a script which requires me to remove all numberic characters from a string.
for example, lets say i have this string:
$foo = 'my phone number is: 213-555-1212';
so i want it to be changed to:
$foo = 'my phone number is: ';
as you can see, all the digits have been removed and only the alpah characters are left
for example, lets say i have this string:
$foo = 'my phone number is: 213-555-1212';
so i want it to be changed to:
$foo = 'my phone number is: ';
as you can see, all the digits have been removed and only the alpah characters are left
author: Sanders