$x = 1; if ($x == '1') { echo 'a'; } if ($x == true) { echo 'b'; } if ((bool)$x === true) { echo 'c'; } if ($x === true) { echo 'd'; } if ((int)$x === true) { echo 'e'; }
Login in to like
Login in to comment
or Read more about PHP Quizzes
Login in to like
Login in to comment