How to format long strings in arrays
Posted
by takeshin
on Stack Overflow
See other posts from Stack Overflow
or by takeshin
Published on 2010-03-22T21:19:00Z
Indexed on
2010/03/22
21:21 UTC
Read the original article
Hit count: 353
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…'
);
© Stack Overflow or respective owner