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