4
What is the function of by one !!
in an if for example? know what !
by itself reverses the value of a boolean result, but tested the !!
and nothing changed in the result, example:
$teste = true;
if(!!$teste) {
echo "é verdade!";
} else {
echo "é mentira!";
}
and resulted in true that if
I was publishing the answer :(
– Wallace Maxters