Radix

base_convert($s,$i1,$i2) returns a string containing a number that is the number in $s converted from base $i1 to base $i2. bindec($s), octdec($s), and hexdec($s) convert to a decimal number from a binary, octal and hexadecimal number respectively. decbin($num), decoct($num), and dechex($num) return the binary, octal and hexadecimal representation strings of $num.

RESETRUNFULL
<!DOCTYPE html><html><head></head>
<body><?php

var_dump(asin(sin(pi()))); echo "<br />";  // approx. 0
var_dump(base_convert('a2d3',16,3)); echo "<br />";
var_dump(octdec('234')); echo "<br />";
var_dump(decbin('243234')); echo "<br />";

?></body></html>