Formatting money / currency using PHP

$formatted = number_format($number,2);