Posted By

jmiller on 12/18/09


Tagged

php number sanitize


Versions (?)

Strip out all but numbers


 / Published in: PHP
 

Strips out every character except 0-9

  1. $numbers = preg_replace("/[^0-9]/", '', $numbers_and_letters);

Report this snippet  

You need to login to post a comment.