Posted by Jam Pa on 05/25/05 19:19
"Kimmo Laine" <eternal.erectionN0.5P@Mgmail.com> wrote in
news:d727g3$9e$1@phys-news1.kolumbus.fi:
>
> & and | are bitwise arithmetic operators while && and || are boolean
> operators. What this maeans is that & and | handle single bits in and
> integer, but && and || evaluate the entire integer as true or false.
[a LOT deleted]
Thank juu Kimmo! Jotain tollaista mun kokeilutkin indikoi! :) Salatiedettδ!
So, what should one use when comparing in if clauses or ternary ? : ops
when evaluating the validity of user input, for instance?
Is this better?
if ($gee && $whiz) { //do shiz)
or perhaps
if ($gee AND $whiz) { //do... }
Jp
Navigation:
[Reply to this message]
|