Skip to content

Code Style Guide: PHP

ginatrapani edited this page Sep 13, 2010 · 20 revisions

This is the Code Style guide for PHP. See the main Code Style Guide page for other languages.

To start, assume we’re using the Drupal PHP coding style unless otherwise noted here.

Always use <?php ?> to delimit PHP code, not the shorthand, <? ?>, as this is the most used and supported across PHP setups and the one PHP will continue supporting in the future.

Clone this wiki locally