What will be the out put of the following code snippet?
if(!r())
echo ‘aaa’;
else
echo ‘err’;
function r(){
//return 1;
}
Here you will not get a chance to execute and see what is the out put. So you have to know exactly what will happen here. Probably even if you are a php pro, sometimes you might get confused here.
It will print “aaa”, even though the function do not return anything.

