PHP Basics Learning Mode
<?php
    class Foo
    {
?>

<?php
        function bar()
        {
            print "bar";
        }
    }
?>

which is correct?