Re: Breaking long lines

From: Date: Mon, 13 Feb 2006 09:36:56 +0000
Subject: Re: Breaking long lines
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-3471@lists.php.net to get a copy of this message
Ludvig Ericson wrote:
Hi, I'm just wondering - I'm not really fond of breaking PHP lines in weird places because the PEAR standards tell me to do so. Do I still have to? And is this acceptable if so: <?php $aReallyLongVariableName = aReallyLongFunction(A_REALLY_LONG_CONSTANT,
     $aReallyLongArgumentName);
?> (If you missed what I mean: the two spaces on the trailing line.) Usually better to wrap to somewhere sensible..:
....$aReallyLongVariableName = aReallyLongFunction( ........A_REALLY_LONG_CONSTANT, ........$aReallyLongVar ....); indents should be a factor of 4 spaces (As per CS) - as long as the continuation is indented I guess it follows CS, technically... Regards Alan

« previous php.pear.qa (#3471) next »