Array formatting for Drupal

General discussion on Zend Studio

Moderator: natalia_b_zend

Array formatting for Drupal

Postby fonant on Fri Jan 06, 2017 12:01 pm

I write code for the Drupal content management framework.

One of the Drupal code formatting requirements is for arrays to be written like this:

$data = array(
'one',
'two',
'three',
);

with a trailing comma after the last item and the closing parenthesis on a new line.

Is there any way to get Zend Studio to format code like this?
fonant
 
Posts: 49
Joined: Thu Mar 05, 2009 2:56 pm
Location: Lancing, West Sussex, UK

Return to Zend Studio

Who is online

Users browsing this forum: No registered users and 1 guest