<?php
$price = "12000";
$price = substr_replace ($price, ',', -3, 0)";
?>
ensure to remove the double quot " at the end of substr_replace ($price, ',', -3, 0)" in the above code to avoid error.
<?php
$price = "12000";
$price = substr_replace ($price, ',', -3, 0)";
?>
ensure to remove the double quot " at the end of substr_replace ($price, ',', -3, 0)" in the above code to avoid error.