|
|
|
ช่วยด้วยครับอยากให้แสดงจุดทศนิยม 2 ตำแหน่งครับ ขอบคุณครับ |
|
|
|
|
|
|
|
Code (PHP)
number_format($row['Price'],2);
|
|
|
|
|
Date :
2016-03-29 10:16:43 |
By :
arm8957 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
<?php
$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
?>
|
|
|
|
|
Date :
2016-03-29 21:44:28 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|