Currency & PHP

How do I display currency from a My sql table?

I have a for that submits the numbers to a MySQL database. I am not cler on what settings to make the database and what code or and script I need ot alter to display the numbers as: e.g. “20 000” ?

echo number_format($number, 0, ‘,’, ’ ');