Reply to Re: Attempting to use Bitwise Operators

Your name:

Reply:


Posted by Simon Bridgewater on 07/09/05 00:40

Try using the switch statement.

Switch($var){
case 1: do something;break;
case 2: do something;break;
default: do whatever something else;break
}

The rest is up to you !!



"Wayne" <not@here.com> wrote in message
news:e5ptc15pq2o1ikflnjn9b6j84kecq35es5@4ax.com...
> On Fri, 08 Jul 2005 13:10:45 -0400, "Michael B. Trausch"
> <fdZEROman+spam@gmail.nospam.com> wrote:
>
> >The idea is that when something calls userId(), it should get to see
> >what type of user flags that are supported. Now I've moved things
> >around, and it seems like the only if that ever executes is the first
> >one, the code doesn't ever reach any of the elseif blocks.
>
> Umm yes, that's the point of *elseif*. If the first block executes,
> the other ones won't. Replace all your elseif's with regular if's and
> your code will work as indended!
>

[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

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