using eregi
Posted: Mon Apr 18, 2005 5:27 am
Hi all,
I have a field in the database where i need to take out any alpha at the end of a string and just keep the numbers. so for example i have:
"123 4 56778 hello"
I want to takeout any alpha nd keep numbers, how can i do this and display "123 4 56778"
I have a field in the database where i need to take out any alpha at the end of a string and just keep the numbers. so for example i have:
"123 4 56778 hello"
I want to takeout any alpha nd keep numbers, how can i do this and display "123 4 56778"