6
Because in this code the value 0
is assigned to the IF
and the value 1
is assigned to the ELSE
?
<?php
$flipCount = 0;
do {
$flip = rand(0,1);
$flipCount++;
if ($flip){
echo "<div class=\"coin\">H</div>";
}
else {
echo "<div class=\"coin\">T</div>";
}
}
Taking into account the answers presented, then it is the opposite:
IF = TRUE (1) and ELSE = FALSE (0)
I had misunderstood your question. Take my +1 now.
– Oralista de Sistemas