The PHP equivalent to to ASP's FormatNumber is number_format. I included a code snippet below. Let me know if you need help... it was a surprise to see you on the forum.
<?php
$number = 1234.56;
// english notation (default)
$english_format_number = number_format($number);
// 1,234.56
// French notation
$nombre_format_francais = number_format($number, 2, ',', ' ');
// 1 234,56
$number = 1234.5678;
// english notation without thousands seperator
$english_format_number = number_format($number, 2, '.', '');
// 1234.56
?>
again, keep in touch... Joshua Motta
Ephren W. Taylor wrote:
Is there an equivalent function compared FormatNumber in ASP that can be used in PHP. I need to find a function in PHP that convert a number in miles. I am doing a distance zip function and need to convert the raw number quickly to miles.
Thanx