I have just installed Zend Studio and now the task to configure it for Drupal. Luckily I have found two good articles on this. I won’t repeat them so take a look at them:
Drupal has unique coding standards and are different from the ones that come preconfigured with Zend Studio. I took my time to configure Zend Studio’s code formatter to follow these standards and I think it’s 98% there. I didn’t get in to the commenting section though as I got tired of doing it by then; but other than that I think it’s exactly what they state. I exported it in an xml file and you can download the Zend Studio Drupal Code Formatter. Please let me know of changes to make to it so I can help others with this.