Ending tags of php – leave or not

PHP End Tag

To end the php code we can use <? , In fact it is just optional and we should leave it when we are following OOP. This helps us to remove unwanted whitespaces.
This is the core rule of Codeigniter also.
But sometimes leaving this make code unclear and messy.
Conclusion , so use this ?> when it’s required and you want to make code more clean. Else leave easily.

Category(s): Featured, Newbie, PHP
Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

 

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">