Talk:Blocks
From MoodleDocs
Moodle 2.0
In the blocks I have looked at, there is no closing php tag - ie the ?> is not included. In this tutorial it is.
By Jove, he's right! The lack of closing tags is, I believe, a trick to prevent problems with newline characters appearing after the closing tag. PHP has no real problem with the last tag not existing, so it's left out to be safe. I will add this to the tutorial when I get chance. Thanks for pointing it out.
Greg J Preece