FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Frst foray into PHP _SELF
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Frst foray into PHP _SELF [message #169980 is a reply to message #169978] Sat, 02 October 2010 20:25 Go to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma:
Senior Member
In news:4ca76de4$0$14855$9a6e19ea(at)unlimited(dot)newshosting(dot)com,
Norman Peelman <npeelman(at)cfl(dot)rr(dot)com> typed:
> Twayne wrote:

....

>
> Rather than close the PHP tag, whynot use the HEREDOC
> syntax? It's basically a super-quote around a large chunk
> of text but you don't leave the interpreter - all variable
> expansion works.

Hmm, you know, I might just play around with that. Might be interestng and
I'm in sandbox mode anway... Got so many cat skins around now, a few more
won't hurt<g>.

>
> ---code---
>
> echo <<< DLMTR
>
> all the $html you want with {$variable} expansion, yes even
> {$arrays[0][1]["example"]}.
>
> DLMTR;
>
> ---end---
>
> Of course DLMTR can be your choice. With this method you
> can basically build a template within the script.

Thanks,

Twayne`
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems modifying date using regex
Next Topic: Is PHP solution for web scripts?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Feb 17 17:17:15 GMT 2025

Total time taken to generate the page: 0.03446 seconds