跳至主要內容
:::

2-4 關於陣列

一、陣列寫法

  1. 陣列是 Array,也就是一個變數可以存放許多值
  2. 底下這幾種方法都可以定義陣列,這三種都是一樣的意思
    $stu = array('吳同學', '王同學', '林同學');
    
    $stu = ['吳同學', '王同學', '林同學'];
    
    $stu[] = '吳同學';
    $stu[] = '王同學';
    $stu[] = '林同學';
     

二、一維陣列

  1. 上面是一維陣列,沒有指定索引的情況下,預設為從 0 開始的數字索引,亦即:
    $stu = array(0 => '吳同學', 1 => '王同學', 2 => '林同學');
    
    $stu = [0 => '吳同學', 1 => '王同學', 2 => '林同學'];
    
    $stu[0] = '吳同學';
    $stu[1] = '王同學';
    $stu[2] = '林同學';
    echo $stu[2] 會得到「林同學」三個字
  2. 可以自己指定索引:
    $stu = array(1 => '吳同學', 2 => '王同學', 4 => '林同學');
    
    $stu = [1 => '吳同學', 2 => '王同學', 4 => '林同學'];
    
    $stu[1] = '吳同學';
    $stu[2] = '王同學';
    $stu[4] = '林同學';
    echo $stu[2] 會得到「王同學」三個字
  3. 亦可用文字作為索引
    $stu = array('1號' => '吳同學', '2號' => '王同學', '4號' => '林同學');
    
    $stu = ['1號' => '吳同學', '2號' => '王同學', '4號' => '林同學'];
    
    $stu['1號'] = '吳同學';
    $stu['2號'] = '王同學';
    $stu['4號'] = '林同學';
    echo $stu[2] 會得到空值,echo $stu['2號'] 才會得到「王同學」三個字
  4. 也就是說,我們可以用一個變數,存一整班的學生資料。

三、二維陣列

  1. 若是要指定某個班的所有學生資料呢?底下兩個會有相同結果($stu 的值為上面所設):
    $class_stu['甲班'] = $stu;
    $class_stu['甲班'] = [1 => '吳同學', 2 => '王同學', 4 => '林同學'];
    • echo $class_stu['甲班'] 會印不出來,顯示 Array,因為底下有好幾個,不曉得要顯示誰(可用 foreach 一個一個印出來)
    • echo $class_stu['甲班'][2] 會印出「王同學」
  2. 若是要存一整個年級的學生資料呢?
    $class_stu['甲班'] = [1 => '吳同學', 2 => '王同學', 4 => '林同學'];
    $class_stu['乙班'] = [1 => '張同學', '陳同學', '梁同學', '郭同學'];
    $class_stu['丙班'] = [1 => '施同學', '黃同學', '楊同學', '蔡同學'];
    • 若是座號當成索引,而且有連號,那麼只要指定第一個,後面會自動連號。
    • 也就是說若 echo $class_stu['乙班'][2] 會印出「陳同學」
    • 也就是說若 echo $class_stu['丙班'][2] 會印出「黃同學」

範例:

<?php
$stu = [1 => '吳同學', 2 => '王同學', 4 => '林同學'];

$class['甲班'] = $stu;
$class['乙班'] = [1 => '張同學', '陳同學', '梁同學', '郭同學'];
$class['丙班'] = [1 => '施同學', '黃同學', '楊同學', '蔡同學'];

$year['一年級'] = $class;
$year['二年級'] = $class;

foreach ($year as $year_name => $all_class) {
    echo "<h2>{$year_name}</h2>";
    foreach ($all_class as $class_name => $students) {
        echo "<h3>{$class_name}</h3>";
        foreach ($students as $num => $name) {
            echo "{$name} ({$num})<br>";
        }
    }
}

// dd($year);

// echo $class_stu['丙班'][1];

// 顯示變數內容
function dd($array = [])
{
    header("Content-Type: application/json; charset=utf-8");
    die(json_encode($array, 256));
}

 


:::

書籍目錄

展開 | 闔起

快速登入


https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1978%26tbsn%3D52

計數器

今天: 453453453
昨天: 4310431043104310
總計: 9137624913762491376249137624913762491376249137624
全部 錯誤訊息 (71) 已棄用 (0) 資料庫語法 (38) 區塊 (9) 額外資訊 (2) 計時(6)
錯誤訊息
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$assignByRef is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$loadPlugin is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$_foreach is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 27
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 42
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 42
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_logcounterx_school2022_default^82ef57587fa6739f25bec43c4a8b75b0fec1cb14_0.db.lcxblockdisplay.html.php 列 42
未知: Creation of dynamic property XoopsModules/Tadtools/Dtree::$title_opt is deprecated 在檔案中的第 /modules/tadtools/class/Dtree.php 列 16
未知: Creation of dynamic property XoopsModules/Tadtools/Dtree::$cate_opt is deprecated 在檔案中的第 /modules/tadtools/class/Dtree.php 列 17
未知: Creation of dynamic property XoopsModules/Tadtools/Dtree::$url_opt is deprecated 在檔案中的第 /modules/tadtools/class/Dtree.php 列 18
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
警告: Undefined array key 2 在檔案中的第 /modules/tad_login/blocks/tad_login.php 列 22
警告: Undefined array key 2 在檔案中的第 /modules/tad_login/blocks/tad_login.php 列 56
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_login_school2022_default^9a36fe6b7ef2d97043df58e0037061e72053376e_0.db.tadlogin.tpl.php 列 27
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Extension_Handler::$getTemplateVars is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php 列 182
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^84539fe8acd40c5f378f06891603c382520ffd84_0.file.theme_css_blocks.tpl.php 列 25
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^8769a883ca1ac623e41162c9d54b2ce8411757a6_0.file.menu_my.tpl.php 列 25
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
警告: Undefined array key "tlogin" 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^4b700abaeaf1cda7df0a719b7b2be562ca91d32a_0.file.menu_login.tpl.php 列 102
警告: Attempt to read property "value" on null 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^4b700abaeaf1cda7df0a719b7b2be562ca91d32a_0.file.menu_login.tpl.php 列 102
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^eeb059e288a364212fc4e3c5217e3ce0a98cc7cf_0.file.leftBlock.tpl.php 列 50
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^595b03a20f1630ce88f70eb9ec2ebfacab28ac31_0.file.rightBlock.tpl.php 列 27
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Variable::$do_else is deprecated 在檔案中的第 /www/wwwroot/campus/xoops_data/caches/smarty_compile/e5b8b7fe_tad_book3_school2022_default^c3b372c147783809409e53366a84afc38a02d392_0.file.footerBlock.tpl.php 列 51
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
未知: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated 在檔案中的第 /class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php 列 719
已棄用
資料庫語法
0.000089 - SET SQL_BIG_SELECTS = 1
0.000425 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '1') ORDER BY conf_order ASC
0.000228 - SELECT sess_data, sess_ip FROM session WHERE sess_id = 'jeh53upkpk5e71j8k88r6414p6'
0.000531 - SELECT COUNT(*) FROM group_permission WHERE (`gperm_modid` = '1' AND (`gperm_groupid` = '3') AND `gperm_name` = 'module_read' AND `gperm_itemid` = '31')
0.000205 - SELECT * FROM config WHERE (`conf_modid` = '31') ORDER BY conf_order ASC
0.000209 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '5') ORDER BY conf_order ASC
0.000200 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '3') ORDER BY conf_order ASC
0.000851 - SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (3)
0.000568 - SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,31) AND b.bid IN (1,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,179,178,98,97,150,177,78,176,99,94,175,59,96,173,67,83,84,85,86,87,170,88,154,171,90,91,93,168,95,100,104,3,102,107,111,112,113,114,115,116,117,122,130,131,139,140,141,144,174,147,148,149,151,152,153,160,161,162,163,164) ORDER BY b.weight, m.block_id
0.000189 - SELECT cfgname, cfgvalue FROM logcounterx_cfg
0.002323 - DELETE FROM logcounterx_ip WHERE acctime < 1773173428
0.000137 - SELECT accip FROM logcounterx_ip WHERE accip = '216.73.216.210'
0.000144 - UPDATE logcounterx_ip SET acctime = 1773174028 WHERE accip = '216.73.216.210'
0.000318 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'system_block_dummy.tpl') ORDER BY tpl_refid
0.000263 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tadtools_qrcode_block.tpl') ORDER BY tpl_refid
0.000257 - SELECT cfgname, cfgvalue FROM logcounterx_cfg
0.000252 - SELECT cnt FROM logcounterx_count WHERE ymd = '2026-03-11'
0.000101 - SELECT cnt FROM logcounterx_count WHERE ymd = '2026-03-10'
0.000194 - SELECT cnt FROM logcounterx_count WHERE (ymd = '1111-11-11') OR (ymd = '1111/11/11')
0.000374 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'lcx_block_display.html') ORDER BY tpl_refid
0.000348 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_book3_block_index.tpl') ORDER BY tpl_refid
0.000199 - SELECT * FROM config WHERE (`conf_modid` = '37') ORDER BY conf_order ASC
0.000258 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_login.tpl') ORDER BY tpl_refid
0.000674 - SELECT COUNT(*) FROM group_permission WHERE (`gperm_modid` = '33' AND (`gperm_groupid` = '3') AND `gperm_name` = 'forum_read')
0.000350 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_discuss_cbox.tpl') ORDER BY tpl_refid
0.000359 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'system_block_search.tpl') ORDER BY tpl_refid
0.000674 - SELECT `conf_value` FROM `config` WHERE `conf_name` = 'allow_register'
0.000244 - SELECT `mid`, `name`, `dirname` FROM `modules` WHERE `isactive` = 1 AND `hasmain` = 1 AND `weight` != 0 ORDER BY `weight`
0.000148 - SELECT `conf_value` FROM `config` WHERE `conf_title` = '_MD_AM_DEBUGMODE'
0.000160 - SELECT COUNT(*) FROM `priv_msgs` WHERE `to_userid` = 0 AND `read_msg`=0 GROUP BY `to_userid`
0.000194 - SELECT `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group`, `of_level` FROM `tad_themes_menu` WHERE `status` = 1 ORDER BY `of_level`, `position`
0.000966 - desc `tad_book3_data_center` `sort`
0.000213 - select `col_sn`,`data_name`,`data_sort`, `data_value` from `tad_book3_data_center` where `mid`= '31' and `col_name`='read_tbdsn_date' and `col_sn`='1978' order by `sort` , `data_sort`
0.000232 - SELECT * FROM config WHERE (`conf_modid` = '3') ORDER BY conf_order ASC
0.000894 - desc `tad_book3_data_center` `sort`
0.000240 - select `col_sn`,`data_name`,`data_sort`, `data_value` from `tad_book3_data_center` where `mid`= '31' and `col_name`='video_tbdsn_date' and `col_sn`='1978' order by `sort` , `data_sort`
0.000598 - SELECT `groupid`,`name` FROM `groups`
0.000293 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tadbook3_index.tpl') ORDER BY tpl_refid
總計: 38
區塊
紀錄區塊: 沒有快取
自訂區塊(HTML): 沒有快取
本頁面行動條碼: 沒有快取
自訂區塊(HTML): 沒有快取
計數器: 沒有快取
書籍目錄: 沒有快取
快速登入: 沒有快取
即時留言簿: 沒有快取
搜尋: 沒有快取
總計: 9
額外資訊
包含檔案: 261 檔案
使用記憶體: 1780920 bytes
計時
XOOPS 使用 0.091 秒來載入。
XOOPS Boot 使用 0.008 秒來載入。
Module init 使用 0.002 秒來載入。
XOOPS output init 使用 0.056 秒來載入。
Module display 使用 0.018 秒來載入。
Page rendering 使用 0.007 秒來載入。