I have a string, 1234abcdefg1. I need to remove all the integers from said string. Any suggestions? Thanks for any help.
All the integers or just the leading ones? 'cause your subject says "leading", but your message says "all"...
Diego
Yes, all. Sorry.
You could use preg_replace:
$str = "1234abcdefg1"; $str = preg_replace('/\d/', '', $str);
Worked like a charm. Thank you very much.