How to format long strings in arrays
- by takeshin
How should I format very long strings in my source code?
I follow the rule, that line of code should not be longer than 80 characters.
(The other rules are Zend Framework formatting standard)
e.g.
protected $_messages = array(
'key1' => 'very, very long string lorem ipsum dolor sit amet…',
'key2' => 'this one it very long too, and exceeds 80 characters len…'
);