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