小白教程
所有教程
关于
Search
172.70.100.231
172.70.100.231
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func math decoct”的源代码
本页内容
上一节:
Func_math_dechex
下一节:
Func_math_deg2rad
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:decoct()}}[[Category:PHP Math 数学函数参考手册|16]] = PHP decoct() 函数 = [[:Category:PHP Math 数学函数参考手册]] 把十进制转换为八进制: <sample title="" desc="" lang="php" hererun="1"> <?php echo decoct("30") . "<br>"; echo decoct("10") . "<br>"; echo decoct("1587") . "<br>"; echo decoct("70"); ?> </sample> == 定义和用法 == decoct() 函数把十进制数转换为八进制数。 '''提示:'''如需把八进制转换为十进制,请查看 [[func math octdec|octdec()]] 函数。 == 语法 == <pre> decoct(number);</pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | number | 必需。规定要转换的十进制值。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 一个字符串,包含十进制值的八进制数。 |- | 返回类型: | String |- | PHP 版本: | 4+ |} [[:Category:PHP Math 数学函数参考手册]]
返回至“
Func math decoct
”。
上一节:
Func_math_dechex
下一节:
Func_math_deg2rad