The following code will turn 1000 into 1,000:
$price = '1000';
$price2 = number_format($price);
echo $price2;
How would I turn 1,000 into 1000? I'm guessing it would be something along the lines of this:
$price = '1,000';
$price2 = remove_format($price);
echo $price2;