note 71189 added to function.print
| From: | floppie at quadra-tec dot net | Date: | Wed, 15 Nov 2006 17:09:50 +0000 |
| Subject: | note 71189 added to function.print | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119755@lists.php.net to get a copy of this message | ||
At the top of your page, do something to this effect:
<?php
$n = "\n";
$t = "\t";
?>
Then, if you need your table cell four tabs in:
<?php echo($t . $t . $t . $t . '<td>whatever</td>' . $n); ?>
This means the parser only has to interpret four characters inside double quotes, then just stores
them in variables. With strings that small, concatenating six things together won't be slow at
all.
----
Server IP: 64.71.164.2
Probable Submitter: 71.224.56.249
----
Manual Page -- http://www.php.net/manual/en/function.print.php
Edit -- https://master.php.net/note/edit/71189
Del: integrated -- https://master.php.net/note/delete/71189/integrated
Del: useless -- https://master.php.net/note/delete/71189/useless
Del: bad code -- https://master.php.net/note/delete/71189/bad+code
Del: spam -- https://master.php.net/note/delete/71189/spam
Del: non-english -- https://master.php.net/note/delete/71189/non-english
Del: in docs -- https://master.php.net/note/delete/71189/in+docs
Del: other reasons-- https://master.php.net/note/delete/71189
Reject -- https://master.php.net/note/reject/71189
Search -- https://master.php.net/manage/user-notes.php