<?php if ($a < 100) { $a++; } ?> or
<?php if ($a < 100) { $a++; } ?> The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
There are standards for writing the code PSR-0, PSR-1, PSR-2, PSR-3, PSR-4 . There are a lot of things written. Read. Somewhere in the first version, and somewhere in the second (Egyptian style).
Source: https://ru.stackoverflow.com/questions/626826/
All Articles
?>where to put braces is a matter of taste. - teranОткрывающая фигурная скобка в управляющих конструкциях ДОЛЖНА располагаться в той же строке, что и сама конструкция, а закрывающая фигурная скобка ДОЛЖНА располагаться на следующей строке после тела конструкции....... but in fact it is sometimes a matter of taste, and in some companies it is sometimes obliged to comply with its internal standard, which can be written in a completely different way - Alexey Shimansky