Reply to Re: [PHP] if question

Your name:

Reply:


Posted by Richard Lynch on 04/07/05 07:05

On Wed, April 6, 2005 1:47 am, William Stokes said:
> I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ...
> goes
> on like this.
>
> How this can be done?

To be pedantic, in addition to using % (modulus) operator, you'd want to
check:

$x > 0

in order to rule out 0, -3, -6, -9, ...

:-)

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original 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

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