The PHP doc team choosed to use PEAR coding standards in its examples :
http://pear.php.net/manual/en/standards.control.php
But you are free to use the way you want.
Mehdi Achour
The following code appears in the PHP Manual to illustrate a "statement group""
<?php if ($a > $b) { echo "a is bigger than b"; $b = $a; } ?>
Frankly, I get confused when curly braces fly all over the place. If I have a series of nested control
structures and statement groups, it becomes very easy to mismatch the braces and create debugging
headaches.
I prefer to have my opening and closing braces in the same column. For example:
<?php if ($a > $b) { echo "a is bigger than b"; $b = $a; } ?>
That makes them much easier to match up.
Is this syntax permissible? If so, the documentation ought to say so explicitly.
Thank you.
