note 71189 deleted from function.print by nikic
| From: | nikic@php.net | Date: | Mon, 08 Jul 2013 10:51:21 +0000 |
| Subject: | note 71189 deleted from function.print by nikic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195500@lists.php.net to get a copy of this message | ||
Note Submitter: floppie at quadra-tec dot net
----
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.