{
$x++;
}
just like
{$x++;}
which looks like
$x++;
They should indicate a code block.
You can also consider this:
if (true) {
$x++;
}
The code has valid syntax, and it will behave exactly without the if condition. You can reload your code with "valid" and useless code as much as you want.
source
share