I am working on a drupal site and when debugging, I always have to read long nested arrays. As a result, most of my life is spent using arrows, return and tab keys to break 1000+ character strings into an embedded, readable format.
For drupal developers, I cannot use devel dsm (), since I work with multi-step forms # ahah / # ajax, and I can only output arrays to the error log and not to the screen.
Illustrative example:
Evil:
array ('form_wrapper' => array ('#tree' => true, '#type' => 'fieldset', '#prefix' => '', '#suffix' => '', '#value' = > '', 'name' => array ('#type' => 'textfield', '#title' => NULL, '#size' => 60, '#maxlength' => 60, '#required' = > false, '#description' => NULL, '#attributes' => array ('placeholder' => 'Email',), '#post' => array ('form_wrapper' => array ('name' => '', 'pass' => '',), ...
Good:
array ( 'form_wrapper' => array ( '#tree' => true, '#type' => 'fieldset', '#prefix' => '<div>', '#suffix' => '</div>', '#value' => '', 'name' => array ( '#type' => 'textfield', '#title' => NULL, '#size' => 60, '#maxlength' => 60, '#required' => false, '#description' => NULL, '#attributes' => array ( 'placeholder' => 'Email', ),
Change Sorry, I didnβt mean βdo not displayβ through drupal system messages, where arrays can be displayed in an interactive, nested format (using devel.module).