some useful

1. number_format
$number = 1234.5678;

// english notation without thousands seperator
$english_format_number = number_format($number, 2, '.', '');
// 1234.57

2. ucwords
$bar = 'HELLO WORLD!';
$bar = ucwords($bar);             // HELLO WORLD!
$bar = ucwords(strtolower($bar)); // Hello World!


In Perl (CGI) the function is ucfirst().
Or you can just use CSS:
[code="css]
style="text-transform:capitalize;"


3.

你可能感兴趣的:(PHP,css,cgi,perl)