www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to put a html block into a $var

  1. #1
    Join Date
    Feb 2006
    Posts
    352

    Post How to put a html block into a $var

    Good day,
    I was wondering how can I put a html block into a $var.

    Thanks!

  2. #2
    Join Date
    Jun 2007
    Posts
    348
    What do you mean?
    PHP Code:
    $var '<table style="margin:0px;">'."\n";
    $var.= '  <tr>'."\n";
    $var.= '    <td style="text-align:left;">'."\n";
    $var.= '      <p>&nbsp; left &nbsp;</p>'."\n";
    $var.= '    </td>'."\n";
    $var.= '    <td style="text-align:right;">'."\n";
    $var.= '      <p>&nbsp; right &nbsp;</p>'."\n";
    $var.= '    </td>'."\n";
    $var.= '  </tr>'."\n";
    $var.= '</table>'."\n"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles