Jump to content

[ resolved ] Dollar handleing


Guest

Recommended Posts

[code]
<?php
$number = 1234.56;

// english notation (default)
$english_format_number = number_format($number); //    returns1,235

$english_format_number = "$" .english_format_number;  //  <--this will add the dollar sign in front of the number.
?>
[/code]

www.php.net/number_format

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.