Remove everything but numbers from a string


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

Make it $new_string = ereg_replace("[^A-Za-z0-9]", "", $string );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.