PHPmathbase_convert
fmod

base_convertmath

decbin

任意の進数間で数値を変換します。

構文

base_convert(string $num, int $from_base, int $to_base): string