You are here: Re: [PHP] [OFF: logical question] rounding in steps of 15 « PHP « IT news, forums, messages
Re: [PHP] [OFF: logical question] rounding in steps of 15

Posted by Norbert Wenzel on 08/18/05 11:53

Richard Lynch wrote:
> You're on your own converting 1:38 or 357 into minutes, but:
>
> $minutes = 357;
> $minutes = 15 * round($minutes / 15);
> echo "minutes: $minutes\n";

Thank you both. The conversion from 1:38 to 98 is no problem, but I knew
there was a more beautiful way round to 15 minutes.

Thanks.
Norbert

 

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

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