I try to write very clean code. However, there is one thing that always bugs
me - using heredoc syntax in a function. Code in the function really should
be indented (or 4 spaces for PEAR types), but, to quote the documentation,
"the closing identifier must begin in the first column of the line." Th
I usually do something like this:
function somefunction(){
//Do whatever
print
<<< END
Whatever
text
here
END
;
}
Rob Day wrote:
I try to write very clean code. However, there is one thing that always bugs
me - using heredoc syntax in a function. Code in the function really should
be in
heredoc is the fastest way to get lazy. use inline php then, easier and
can use tabs, no? Tabs of 4 spaces are, normally, the most prefered.
--
Maxim Maletsky
[EMAIL PROTECTED]
On Mon, 3 Feb 2003 11:47:12 -0600 Rob Day <[EMAIL PROTECTED]> wrote:
> I try to write very clean code. However, the