hello everybody..
i was about to give my site a code update to make it lighter and faster..
i typically use alot of ifs and many of them are single liners like
if(blah) {$foo=1}
else {$foo=0}
which could be written as
if(blah) $foo=1
else $foo=0
and works correctly.. but i want to know is it a good practice to gave single liners written like that.
also which one would be faster? if else or switch case?