PHP disk_total_space() 函数

PHP 教程 · 2019-01-24 18:56:51

定义和用法

disk_total_space() 函数返回指定目录的磁盘总容量,以字节为单位。

语法


disk_total_space(directory)


参数 描述
directory 必需。规定要检查的目录。

实例


<?php
echo disk_total_space("C:");
?> 

上面的代码将输出:


119990349824


点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

The Little Schemer - 4th Edition

The Little Schemer - 4th Edition

Daniel P. Friedman、Matthias Felleisen / The MIT Press / 1995-12-21 / USD 40.00

This delightful book leads you through the basic elements of programming in Scheme (a Lisp dialect) via a series of dialogues with well-chosen questions and exercises. Besides teaching Scheme, The Lit......一起来看看 《The Little Schemer - 4th Edition》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具