Created
July 28, 2019 10:26
-
-
Save morad7/38d21a5c137e8512395b05aa26d46618 to your computer and use it in GitHub Desktop.
Replace comma with dot php/mysql
This file contains 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 | |
$num = (int) "10"; | |
$num = (double) "10.12"; // same as (float) "10.12"; | |
//mysql | |
update table | |
set myColumn = replace(myColumn, ',', '.') | |
where myColumn like '%,%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment