hmmmmm I can't really understand your question. Since you are using $row, I am assuming this is a query from a database table. As long as you have 2000 as a value in the field "payment" ,then it should output 2000
sprintf will help you format your output to currency, and number_format will help you add the comma to group thousands. Use these two functions together to produce the desired result.