Reply to Re: how does this work

Your name:

Reply:


Posted by milahu on 10/11/22 11:45

Heh, nice solution! :)

The 1st statement checks, if $num is a number.

The 2nd one checks, if the the binary "one" is set, as it is with every
odd number.
Alternatively, you could use modulo:
!($num % 2)

IMO, the most odd thing about this is the single "&" between the two
statements; I would use "&&" or "and" here. ;)

Cheers..

[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

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