Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-12-03, 12:38 AM
Junior Member
 
Join Date: Dec 2005
Posts: 6
stillatmycomputer
Default

Looking for the code that will let you put many lines of html into a variable, but not using ob_start().



Code:
<?php

// some php code that uses ">>>" before the html . . . 

>>> 

<html>stuff here</html>
I read this somewhere and can't remember where.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2005-12-03, 06:20 AM
Junior Member
 
Join Date: Dec 2005
Posts: 3
birdonwire
Default

what do u wanna do exactly ???? :unsure:
__________________
I do give code examples if i can do the trick
Yes, I am for hire but I doubt you can afford me.
Yes, XAMPP was very helpfull for me and saved me a lot.
and YES I copied most of this signiture from another user on this forum !!
Reply With Quote
  #3 (permalink)  
Old 2005-12-14, 05:34 PM
Senior Member
 
Join Date: Dec 2004
Posts: 199
strasm is an unknown quantity at this point
Default

Code:
    $html = <<<ENDNOW

  <html>
    hello world
  </html>

ENDNOW;

echo $html
Thank god that PHP takes after PERL.

ENDNOW can be named anything. when you close it ENDNOW must be the first thing on the line (no tabs or spaces).
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:04 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.