Why do you have long lines in your code? I know this isn't answering your question, but coding in extreemly long lines is going to make things difficult to maintain. Personally I try to keep my lines as short and to the point as possible. That way when I, or someone else, has to go back into this code they don't have to spend trying to figure out what is going on:
i.e:
$myStr = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. '
. 'Integer dignissim eros ut tortor. Quisque blandit elementum '
. 'mi. Phasellus pellentesque ligula a neque. Donec pede. Suspendisse '
. 'at enim. Aenean sed libero. Donec velit massa, consectetuer sit amet, '
. 'vehicula at, ultricies rutrum, sem. Etiam quis pede quis nisi '
. 'pellentesque consequat. Vivamus sodales mattis dolor. Curabitur mattis. '
. 'Vivamus scelerisque urna eu metus. Nunc nibh lacus, ultricies sit amet, '
. 'porttitor a, cursus tempor, lacus. Quisque convallis lorem vitae lacus '
. 'dapibus scelerisque.'
Instead of
$myStr = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer dignissim eros ut tortor. Quisque blandit elementum mi. Phasellus pellentesque ligula a neque. Donec pede. Suspendisse at enim. Aenean sed libero. Donec velit massa, consectetuer sit amet, vehicula at, ultricies rutrum, sem. Etiam quis pede quis nisi pellentesque consequat. Vivamus sodales mattis dolor. Curabitur mattis. Vivamus scelerisque urna eu metus. Nunc nibh lacus, ultricies sit amet, porttitor a, cursus tempor, lacus. Quisque convallis lorem vitae lacus dapibus scelerisque.';
Lets me easily identify that I've got a very large string that I'm placing in a variable and I'm not doing any variable substitutions in the middle or appending any thin but the text.
The second style would force me to scroll out to the end of the line to verify what is being stored (not everyone uses the same IDE, some people use command line tools). This may make it a little more difficult to maintain your formatting if you have large strings like this, but you'll find it make tracking down issues so much easier.