Log in

View Full Version : Resolved & and && difference



neo_philiac
08-25-2009, 08:35 PM
Stupid question:

In php what is the difference between



if(getName() & $level){
return 1;
}




if(getName() && $level){ // Notice the && here
return 1;
}


Why does it return different answer?
Thanks

neo_philiac
08-25-2009, 08:52 PM
NVM Got it! Sorry :)