Convert string to number

You don’t want to convert “7,xxxx” to integer, that doesn’t make sense. Also, if you have a string with a comma, you would have to replace that with a dot or use number_format() to convert.