I have following grouped currency formatted string:
$str = "$1,000,000";
I want to just extract 1000000
in order to do some calculation. How can I achieve that? Is there any built-in PHP function to do so? Otherwise I may need to use some RegExp.
EDIT
This is not a duplicate question because here we have a currency grouped formatted string and not a straightforward simple text.