which is run faster?
| From: | Miryadi Fadilah | Date: | Mon, 18 Sep 2000 10:15:27 +0000 |
| Subject: | which is run faster? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17160@lists.php.net to get a copy of this message | ||
dear all,
which php coding style will run faster on a server:
(1)
<?
echo "<HTML>\n";
echo "<TITLE>This is a title</TITLE>\n";
echo "<BODY>\n";
$i=5+5;
$j=$i/2;
echo "The Result of 5+5 is $i and $i divided by 2 is $j\n";
.
.
.
echo "</BODY>\n";
echo "</HTML>\n";
?>
or
(2)
<HTML>
<TITLE>This is a title</TITLE>
<BODY>
<? $i=5+5; $j=$i/2; ?>
The Result of 5+5 is <? echo $i; ?> and <? echo $i; ?> diveded by 2 is
<? echo $j; ?>
</BODY>
</HTML>