Strip out all but numbers


/ Published in: PHP
Save to your folder(s)

Strips out every character except 0-9


Copy this code and paste it in your HTML
  1. $numbers = preg_replace("/[^0-9]/", '', $numbers_and_letters);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.