Sequential semicolons; do not return syntax error?

$name = 'John Doe';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
$age = 16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
$address = 'Planet Earth';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Should this be considered a mistake? PHP does not return any syntax errors at all.

+5
source share
5 answers

It's not a mistake. It is simply an expression in which there is nothing. That's right.

+8
source

This is valid - it's just an empty statement

+4
source

. .

+3

, /// //. , ;;;;;;;;;;;;;;;;;;;;;;;;

+3

, PHP, #. .

+1

All Articles