+ 2
Does PHP support ASI?
auto semicolon insertion
5 Respostas
+ 18
@PF
it's needed
when you try it with a single/last echo statements it works good.
else throws error
<?php
echo "Hello friends";
echo 'only for single statements'
?>
+ 4
I think so.
But which software does that?
+ 1
I come from JavaScript where if you forget a semicolon it can be inserted automatically.
+ 1
the semicolon seems necessary if there are additional echo commands. However I get no errors when I leave it off the final echo.