* @param bool $detail 是å¦é¡¯ç¤ºè©³ç´° * @return integer|array */ public static function getFile($detail = false) { if ($detail) { $files = get_included_files(); $info = []; foreach ($files as $key => $file) { $info[] = $file . ' ( ' . number_format(filesize($file) / 1024, 2) . ' KB )'; } return $info; } return count(get_included_files()); } /** * ç€è¦½å™¨å‹å¥½çš„變é‡è¼¸å‡º * @param mixed $var 變é‡
* @param bool $detail 是å¦é¡¯ç¤ºè©³ç´°
* @return integer|array
*/
public static function getFile($detail = false)
{
if ($detail) {
$files = get_included_files();
$info = [];
foreach ($files as $key => $file) {
$info[] = $file . ' ( ' . number_format(filesize($file) / 1024, 2) . ' KB )';
}
return $info;
return count(get_included_files());
/**
* ç€è¦½å™¨å‹å¥½çš„變é‡è¼¸å‡º
* @param mixed $var 變é‡