Created
May 16, 2014 15:47
-
-
Save arioch1984/32f8a4aa0ef053f86310 to your computer and use it in GitHub Desktop.
Parse string for float numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
preg_match_all('!\d+\,*\d*!', $price, $matches); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment