[討論] PHP顯示出html的速度差別!?
哈囉,大家好!
小弟剛剛想到了一個頗為無聊的問題.
需要顯示資料的時候
1.
我會在<body>上方寫個
<?php
$exp_html='<table><tr><td>一堆資料庫的資料</td></tr><table>';
?>
<body>
<?php echo $exp_html;?>
</body>
2.
<body>
<table>
<?php
//做了一堆資料庫 or foreach的運算 存在 $data
echo $data;
?>
</table>
</body>
這樣如果資料量很大,產生出來的結果,速度上會差很多嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.124.195.130
推
12/30 11:47, , 1F
12/30 11:47, 1F
→
12/30 11:48, , 2F
12/30 11:48, 2F
→
12/30 11:48, , 3F
12/30 11:48, 3F
→
12/30 11:50, , 4F
12/30 11:50, 4F
→
12/30 11:51, , 5F
12/30 11:51, 5F
→
12/30 11:51, , 6F
12/30 11:51, 6F
→
12/30 11:52, , 7F
12/30 11:52, 7F
推
12/30 11:55, , 8F
12/30 11:55, 8F
→
12/30 11:56, , 9F
12/30 11:56, 9F
→
12/30 11:56, , 10F
12/30 11:56, 10F
推
12/30 12:00, , 11F
12/30 12:00, 11F
→
12/30 12:01, , 12F
12/30 12:01, 12F
→
12/30 12:01, , 13F
12/30 12:01, 13F
→
12/30 12:02, , 14F
12/30 12:02, 14F
→
12/30 15:59, , 15F
12/30 15:59, 15F
→
12/30 16:43, , 16F
12/30 16:43, 16F
→
12/30 16:44, , 17F
12/30 16:44, 17F
→
12/30 16:44, , 18F
12/30 16:44, 18F
推
12/30 17:06, , 19F
12/30 17:06, 19F
推
12/30 23:42, , 20F
12/30 23:42, 20F
推
12/31 02:28, , 21F
12/31 02:28, 21F
推
12/31 08:26, , 22F
12/31 08:26, 22F
→
12/31 08:29, , 23F
12/31 08:29, 23F
推
12/31 09:31, , 24F
12/31 09:31, 24F
推
12/31 10:22, , 25F
12/31 10:22, 25F
→
12/31 10:22, , 26F
12/31 10:22, 26F
→
12/31 12:30, , 27F
12/31 12:30, 27F
→
12/31 12:30, , 28F
12/31 12:30, 28F
推
12/31 13:13, , 29F
12/31 13:13, 29F
→
12/31 13:14, , 30F
12/31 13:14, 30F
→
12/31 14:18, , 31F
12/31 14:18, 31F
推
12/31 16:58, , 32F
12/31 16:58, 32F
推
12/31 17:06, , 33F
12/31 17:06, 33F
→
12/31 21:50, , 34F
12/31 21:50, 34F
→
01/01 00:18, , 35F
01/01 00:18, 35F
推
01/01 02:49, , 36F
01/01 02:49, 36F
→
01/01 02:49, , 37F
01/01 02:49, 37F
→
01/01 13:36, , 38F
01/01 13:36, 38F
→
01/01 13:37, , 39F
01/01 13:37, 39F
→
01/01 13:38, , 40F
01/01 13:38, 40F
推
01/01 18:16, , 41F
01/01 18:16, 41F
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章