选择语言 :

 Core_Str::byte

输出字节格式化

string Core_Str::byte( [ string $force_unit = null , string $format = null , boolean $si = bool true ] )

参数列表

参数 类型 描述 默认值
$force_unit string A definitive unit null
$format string The return string format null
$si boolean Whether to use SI prefixes or IEC bool true
返回值
  • string
File: ./core/classes/str.class.php
public function byte($force_unit = null, $format = null, $si = true)
{
    return Text::bytes((int)$this->data, $force_unit, $format, $si);
}