Re: Class variable interpolation




"August Karlstrom" <fusionfile@xxxxxxxxx> wrote in message
news:ge8e9n$ur2$1@xxxxxxxxxxx
Curtis wrote:
Using sprintf() and its ilk is also viable, and, IMO, can be easier on
the eyes than relying on variable interpolation, anyway.

For shorter strings, yes, but probably not with 50 lines of HTML in a
heredoc.

A heredoc is your case for code legibility? :^)


.



Relevant Pages

  • Re: Class variable interpolation
    ... the eyes than relying on variable interpolation, ... For shorter strings, yes, but probably not with 50 lines of HTML in a heredoc. ...
    (comp.lang.php)
  • Re: What does "<<<" mean?
    ... I fell in love with heredoc for a while and then started to realize ... It is a great way to include a bunch of html or SQL code that will ... software like Dreamweaver can't interpret heredoc code ... while heredoc interprets variables without requiring php tags (a ...
    (php.general)
  • Re: Can I use a function ref to call a function in a web script?
    ... I'm using heredocs to spit out the html. ... that involves ending the heredoc, calling the function, and then ... Can I assign this function to a scalar ref in my ... the only way to interpolate random expressions is the ...
    (comp.lang.perl.misc)
  • Getting a function result while in heredoc
    ... Thanks to those that taught me to use heredoc to embed html in php. ... I know I could assign the results of using the function to variables outside of the heredoc block or I could break the block for the function, but the first is cumbersome and the second gets rid of the clarity of the heredoc approach. ...
    (comp.lang.php)
  • Re: Getting a function result while in heredoc
    ... bill wrote: ... I don't want to start the html in php vs php in html ... concatenating the html into a variable rather than using heredoc, ...
    (comp.lang.php)