Stupid question:
In php what is the difference between
Code:if(getName() & $level){
return 1;
}
Why does it return different answer?Code:if(getName() && $level){ // Notice the && here
return 1;
}
Thanks
Printable View
Stupid question:
In php what is the difference between
Code:if(getName() & $level){
return 1;
}
Why does it return different answer?Code:if(getName() && $level){ // Notice the && here
return 1;
}
Thanks
NVM Got it! Sorry :)