Is there a function for switching/inverting boolean
value in PHP?
Like... a shortcut for:
if($boolean === true){
$boolean = false;
}else{
$boolean = true;
}
See Question&Answers more detail:osIs there a function for switching/inverting boolean
value in PHP?
Like... a shortcut for:
if($boolean === true){
$boolean = false;
}else{
$boolean = true;
}
See Question&Answers more detail:os