Possible Duplicate:
Reference – What does this symbol mean in PHP?
I was searching for a password generator tutorial, which I found one but somethings got me a little confused…
if ($strength & 2) {
$vowels .= "AEIOU";
}
What exactly is this operator? I know && equals “and” but just one &?
As in most programming languages,
&is the bitwise and operator.x & 2tests whether the second (least significant) bit ofxis set (2is10in binary).