Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2006

Re: syntax question

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: syntax question
Date 2011-06-06 06:20 -0400
Organization A noiseless patient Spider
Message-ID <isi9kv$m02$1@dont-email.me> (permalink)
References <7318f27a-f5a3-4aa5-96b6-0c3ad23f0a40@c20g2000vbv.googlegroups.com> <4debf485$0$13337$bed64819@gradwell.net> <ishl7u$e40$1@news.albasani.net>

Show all headers | View raw


On 6/6/2011 12:30 AM, jeff wrote:
> On 6/5/2011 5:26 PM, Denis McMahon wrote:
>> On Sat, 04 Jun 2011 11:16:32 -0700, Co wrote:
> <snip>
>> Oh gods. Lay the code out so you can see it!
>>
>> If you use the heredoc format, you can lay your code out so that you have
>> a better chance of spotting missing tags etc.
>
> I've been looking at a lot of newbie and not so newbie php lately and
> absolutely no one is using heredocs.
>
> It's concatenation hell to read and I imagine just as hard to write.
> Mistakes abound, as you might expect.
>
> So for those two lines of heredoc prose, I thank you.
>
> Jeff
>

I don't know who's code you've been looking at, but I've seen a lot of 
heredoc code used.  It can be quite useful in a lot of situations.  It's 
easy to both read and write.

However, your comments about "concatenation hell" makes me wonder if you 
understand what heredoc actually is.  There is no concatenation in heredoc.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

syntax question Co <vonclausowitz@gmail.com> - 2011-06-04 11:16 -0700
  Re: syntax question Luuk <Luuk@invalid.lan> - 2011-06-04 20:45 +0200
  Re: syntax question Derek Turner <frderek@cesmail.net> - 2011-06-04 19:00 +0000
    Re: syntax question Co <vonclausowitz@gmail.com> - 2011-06-04 13:51 -0700
      Re: syntax question The Natural Philosopher <tnp@invalid.invalid> - 2011-06-04 21:54 +0100
        Re: syntax question Co <vonclausowitz@gmail.com> - 2011-06-04 14:24 -0700
          Re: syntax question Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-04 20:32 -0400
      Re: syntax question Michael Fesser <netizen@gmx.de> - 2011-06-05 14:53 +0200
  Re: syntax question jeff <mung_me@att.net> - 2011-06-04 23:43 -0400
  Re: syntax question Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-06-05 21:26 +0000
    Re: syntax question jeff <mung_me@att.net> - 2011-06-06 00:30 -0400
      Re: syntax question Jerry Stuckle <jstucklex@attglobal.net> - 2011-06-06 06:20 -0400
        Re: syntax question jeff <mung_me@att.net> - 2011-06-06 07:19 -0400

csiph-web