Đăng ký học joomla

Tin tức mới nhất

Thống kê truy cập

Truy cập trong ngày:180
Truy cập hôm qua:404
Tổng số truy cập:537979
Đang online: 12 Khách 

chúng ta sử dụng hàm number_format() để biến đổi một số, nhóm nó thành nhóm hàng nghìn.

 

VD:

<?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

?>
 

Add comment


Security code
Refresh

thiet ke web chuan w3c

Dịch vụ seo website

seo website