Re: html -echo-print
| From: | Philip Olson | Date: | Wed, 07 Feb 2001 18:44:28 +0000 |
| Subject: | Re: html -echo-print | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38591@lists.php.net to get a copy of this message | ||
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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>