PHP/Zend: How to remove all chars from a string and keep only numbers.

Posted by Awan on Stack Overflow See other posts from Stack Overflow or by Awan
Published on 2010-04-14T08:03:56Z Indexed on 2010/04/14 8:13 UTC
Read the original article Hit count: 215

I want to keep only numbers and remove all characters from a variable.

For example:

input: +012-(34).56.(ASD)+:"{}|78*9
output: 0123456789

© Stack Overflow or respective owner

Related posts about php

Related posts about zend