You are here: Re: writing long numbers with delimiters « PHP Programming Language « IT news, forums, messages
Re: writing long numbers with delimiters

Posted by Tyrone Slothrop on 03/18/07 14:22

On Sun, 18 Mar 2007 15:02:10 +0100, hidden@mail.zz (Ja NE) wrote:

>for no particular reason at this very moment, I would like to echo
>numebrs of seconds since my site is born. or since I'm born. this isn't
>problem ($diff = time() - mktime($begining) but it looks ugly on screen:
>
>using this two functions substr(chunk_split($diff, 3, '.'), 0, -1);
>I'm lucky with my site: 277142273 seconds = 277.142.273
>but with myself: 1257865147 seconds = 125.786.514.7
>
>so I would like to echo 1.257.865.167 ...can someone help me with this?
>
>(I know I have seen it somewhere before, but now I can't find where)
>thank you! :)
>
>--
>Ja NE
>http://fotozine.org/?omen=janimir

number_format() is what you are looking for.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация