PHP - Semicolon and closing PHP tag
While working on my PHP interpreter implementation, I discovered that a semicolon is not always required in PHP. The closing PHP tag can be seen as adding a semicolon to the code.
In short:
A semicolon before a closing PHP tag can be omitted.
Valid
<?php validCode(); ?>
<?php validCode() ?>
<?php validCode();
Invalid
<?php invalidCode()