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

or Read more about PHP Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback