As per PHP coding standward, we don't need ending ?>

From

http://www.php-fig.org/psr/psr-2/

The closing ?> tag MUST be omitted from files containing only PHP.
Quote Originally Posted by vineesh View Post
But I didn't get any error after removing the ; from end of the line. My code is:
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.