Instead of using:

if($boolean === true){
    $boolean = false;
}else{
    $boolean = true;
}

One can use

$boolean = !$boolean;

So short and sweet right?


0 Comments

Leave a Reply

%d bloggers like this: