Answers for "php number currency format"

PHP
2

format php currency

<?php
// beware: number_format also rounds

$number = 1234.56;

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

// French notation
$nombre_format_francais = number_format($number, 2, ',', ' ');
// 1 234,56

$number = 1234.5678;

// english notation without thousands separator
$english_format_number = number_format($number, 2, '.', '');
// 1234.57
Posted by: Guest on May-19-2020
0

php currency formator

$number = 100000;
echo number_format($number);
// 100,000
Posted by: Guest on August-24-2021
0

display money format php

<?php 


	$number = 1234.56;

	echo number_format($number, 2);//without currency

	

 ?>
Posted by: Guest on October-13-2021

Code answers related to "php number currency format"

Browse Popular Code Answers by Language