Here are a few examples of what you _can_ do :

<?php 
$color = 'blue'; 
$width = 300; 

    print '<table width="300" bgcolor="blue">'; 
    print "<table width='300' bgcolor='blue'>"; 
    print '<table width='.$width.'" bgcolor="'.$color.'">'; 
    print "<table width='$width' bgcolor='$color'>"; 
    print "<table width=\"$width\" bgcolor=\"$color\">"; 
?> 
    <table width="<?php print $width ?> bgcolor="<?php print $color ?>"> 

For a wonderful tutorial on the subject, go here :

    http://www.zend.com/zend/tut/using-strings.php

It's quite nice.

Regards,


Philip Olson
http://www.cornado.com/

On Wed, 7 Feb 2001, Christopher Allen wrote:

> Hello,
> 
> 
> Is there any way around having to go back and backslash every quote in a
> html table that contains millions of quotes?
> I noticed that
>      <pre>
>      print "
>         his name's
>         jack";
>     </pre>
> 
> works for a single quote, but not double....
> 
> I would literally have a thousand quotes to back slash... My only other
> alternative is to take the table into Star Office and do a  replace on ".
> 
> Thanks for any replies.
> 
> 
> Christopher C. M. Allen
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to