Photo : Francesco Fullone
Hi everyone,
PHP Chunk intends to bring you quick tips, code snippets and best practices in PHP coding. It is aimed at beginner developers and more experimented coders as well.
Visit my about page to learn more about me and this blog.
Hope you will learn some good stuff.
Happy reading
<?php echo 'Hello World!'; ?>
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
The closing tag of a PHP block at the end of a file is optional, and in some cases omitting it is helpful when using include() or require(), so unwanted whitespace will not occur at the end of files, and you will still be able to add headers to the response later. It is also handy if you use output buffering, and would not like to see added unwanted whitespace at the end of the parts generated by the included files.
True. But my page doesn’t content exclusively PHP code so I put a closing tag at the end of my code block :p
Welcome aboard PHPChunk ! Nice to see your blog coming to life. It’s now time for me to add the RSS in my reader and stay aware of updates.
Thanks for your encouragement
Personally, I already follow the wonderful Kablog, but no new post for one month now !