http://framework.zend.com/manual/en/coding-standard.coding-style.html
Basically functions and classes get the { under other constructs get it at the end of the line.
However there are some aspects I would keep out like alignment with spaces (sect. 4.3). I would prefer using a new line before the first element of a long list and indent the entire list with tabs. (As recommended in Code Complete 2nd Edition)
Spaces are a mess no matter where they are and re-aligning things all the time is a waste of time.
However I am not too strict about the exact standard to use. We can refine this over time but at least we have a starting point.
The framework seems not to define where to put { and where to put space
1)
I saw if (..) {
the { is on the line
and function toto()
{
the { is on a new line.
Is it a rule?
2) also are we allow to do
if (...) {....} on the same line
3) the spaces in the if : some people are used to do if ( $a $b ) some others do if ($a $b)
Perhaps not important - Perhaps we need only to have an example in the page