I know this might sound as really dummy question, but I\'m trying to ensure that the provided string is of a number / decimal format to use it later on with PHP\'s number_fo
You can try that one:
$string = preg_replace('/[^0-9]/', '', $string);
Cheers.