";
$oct = "01234567";
$hexa_decimal = base_convert($oct, 8, 16);
echo "$oct octal = $hexa_decimal hexa decimal.
";
$oct = "01234567";
$decimal = base_convert($oct, 8, 10);
echo "$oct octal = $decimal decimal.
";
$decimal = "342391";
$oct = base_convert($decimal, 10, 8);
echo "$decimal decimal = $oct octal.
";
$oct = "342391";
$binary = base_convert($oct, 8, 2);
echo "$oct octal = $binary binary.";
?>