southbeach
Programmer
I just started playing with framework for the very first time and as I navigate around the scripts I notice that none of them have closing tag ( ?> )
I searched for the meaning to this and found that it appears to be a "trend" or a "highly suggested" practice. Some argue that the tag could create a conflict or unexpected results and best is to leave it out and make sure that no extra space is added to script - I do not even know what "extra space" is ... blank spaces? new lines? blank lines?
So, I have tones of PHP scripts that work just fine; all of them with ?> - Need I go through and remove them?
The danger of running a global search and replace is that there are many instances where I have PHP code embedded within the HTML and removing the ?> in those case could really mess things up.
What is your take on this?
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
I searched for the meaning to this and found that it appears to be a "trend" or a "highly suggested" practice. Some argue that the tag could create a conflict or unexpected results and best is to leave it out and make sure that no extra space is added to script - I do not even know what "extra space" is ... blank spaces? new lines? blank lines?
So, I have tones of PHP scripts that work just fine; all of them with ?> - Need I go through and remove them?
The danger of running a global search and replace is that there are many instances where I have PHP code embedded within the HTML and removing the ?> in those case could really mess things up.
What is your take on this?
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.