I use tabs for indentation and code clarity. But with the heredoc syntax, you cannot indent the closing identifier. I like using heredoc, especially for email contents, but it makes my code look ugly because it is always at the left-aligned even when nested within if statements and so on. Does anyone have any suggestions for using heredoc (or perhaps an alternative I don't know about) and retaining good-looking code?
Use an external template file for this sort of thing.
Also you can indent almost all the code. Only the closing identifier has to be left aligned.
This topic is now closed. New replies are no longer allowed.