Posted By

SmpleJohn on 08/02/10


Tagged


Versions (?)

PHP - Show only integers using preg_replace


 / Published in: PHP
 

  1. preg_replace("/[^0-9]/", "", $string);

Report this snippet  

You need to login to post a comment.