Binary bin
decimal dec
Octal oct
The result of converting hexadecimal hex
<code><span>//十进制转二进制</span><span>$d</span> = decbin(<span>8</span>); <span>//十进制转八进制</span><span>$o</span> = decoct(<span>8</span>); <span>//十进制转十六进制</span><span>$h</span> = dechex(<span>8</span>); <span>//十六进制转十进制</span><span>$d</span> = hexdex(<span>"8"</span>);</code>
The above introduces the base conversion in PHP, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.