Consider following code snippet:
<?php
foo();
if (true) {
    function foo() {
        echo "bar";
    }
}
?>
What will be the result of executing the code above?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
PHP quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes