As per PHP coding standward, we don't need ending ?>
From
http://www.php-fig.org/psr/psr-2/
Look like this is because latest PHP can handle single line PHP code with out ending semicolon. But we will need semicolon as almost every php code have more than one line.The closing ?> tag MUST be omitted from files containing only PHP.





Reply With Quote
Bookmarks