You are here: Re: [PHP] professional code quick tip « PHP « IT news, forums, messages
Re: [PHP] professional code quick tip

Posted by Robert Cummings on 09/21/05 02:52

On Tue, 2005-09-20 at 19:47, Thorsten Suckow-Homberg wrote:
> You could use the following statement:
>
> <?php
> switch (true) {
> case (0 < $n <= 4):
> $f = 1;
> break;
> case (5 < $n <= 7):
> $f = 2;
> break;
> case (8 < $n <= 12):
> $f = 3;
> break;
> default:
> $f = 4;
> break;
> }

I'm certain that is illegal.

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

 

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

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