Avatar of pda4me
pda4me

asked on 

PHP echo of a MySQL price variable seperate with commas

I have a PHP echo command that lists as price as part of the results returned.  How do I take that number and insert a comma for easier reading:  example:  2000000 needs to be 2,000,000.

Here is what is currently in place:

<?php echo($row['SearchPrice']); ?>

Open in new window

PHPMySQL Server

Avatar of undefined
Last Comment
pda4me

8/22/2022 - Mon