I need to extract the numbers only from a field.

For example:  I have an AMOUNT field and so that I can filter out any user
typo's I would like to extract the numbers only.

If the user enters $56.55 for example or just $56 then I would like to be
able to remove the "$" and the "." keeping just the 56 or 5655.

Can I use eregi_replace() to do this -- I've been trying but it doesn't seem
to work right.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to