Thursday, May 19, 2005

Heredoc syntax in PHP is so cool! This morning I spent an hour trying to figure out why a certain script taken from a book would work nicely, but another wouldn't, even when they appeared exactly the same. Even when pushing a version that I somehow made work and my original through diff, I got this:
<       function addFooter()
>       function addFooter()
< EOD;
> EOD;
Isn't that awesome? Conclusion: tabs after EODs are bastards. Anyone know how I can get diff to show me hidden characters like '\t' as such?

No comments: