久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php十進(jìn)制轉(zhuǎn)八進(jìn)制的算法是什么

      在PHP中,十進(jìn)制轉(zhuǎn)八進(jìn)制的算法是decoct(),decoct()可以將指定的十進(jìn)制數(shù)轉(zhuǎn)換為八進(jìn)制數(shù),返回的結(jié)果是八進(jìn)制數(shù)的字符串,語(yǔ)法為“decoct(number);”。

      php十進(jìn)制轉(zhuǎn)八進(jìn)制的算法是什么

      本文操作環(huán)境:Windows10系統(tǒng)、PHP7.1版、Dell G3電腦。

      php十進(jìn)制轉(zhuǎn)八進(jìn)制的算法是什么

      decoct() 函數(shù)把十進(jìn)制數(shù)轉(zhuǎn)換為八進(jìn)制數(shù)。

      如需把八進(jìn)制轉(zhuǎn)換為十進(jìn)制,可以利用octdec() 函數(shù)。

      語(yǔ)法

      decoct(number);

      number 必需。規(guī)定要轉(zhuǎn)換的十進(jìn)制值。

      返回值: 一個(gè)字符串,包含十進(jìn)制值的八進(jìn)制數(shù)。

      示例如下:

      <?php echo decoct("30") . "<br>"; echo decoct("10") . "<br>"; echo decoct("1587") . "<br>"; echo decoct("70"); ?>

      輸出結(jié)果:

      php十進(jìn)制轉(zhuǎn)八進(jìn)制的算法是什么

      推薦學(xué)習(xí):《PHP視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)