There are no "official" coding standards in PHP (nor most languages). The closest the PHP community has is the PEAR Coding Standards which, in my opinion, are very good. If you want to format your scripts to be easy to read and maintain, then you can't go wrong with the PEAR standards.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.