Home > Backend Development > PHP Tutorial > $_FILES["file"]["size"] 结果单位疑问解决办法

$_FILES["file"]["size"] 结果单位疑问解决办法

WBOY
Release: 2016-06-13 10:17:43
Original
1785 people have browsed it

$_FILES["file"]["size"] 结果单位疑问
上传了一张图片
$_FILES["file"]["size"] / 1024的结果是21.720703125 Kb
按道理来说这个结果单位应该是“字节”,而非“位”,那为什么单位不是KB,而是Kb呢?



------解决方案--------------------
那就是你自己手误了哈哈。
$_FILES["file"]["size"] 的单位是字节byte 。 除以1024单位自然是 KB
不过我到现在都没明白你想问的是什么

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template