Always retreat to the attached statement for one additional than the body of the block. You should write a function like this:
function (reallylongparam, reallylongparam, reallylongparam, reallylongparam, reallylongparam) { doStuff() }
therefore, you should write your if statement as follows:
if(rand(1, 100) == 22 && $smth < time() && $smths > 5 && $sxsxsx > 250 && !$_SESSION['false']) { doStuff(); }
source share