It converts a decimal to octal
Example
<?php
echo decoct(17);
?>
Output
21
Example
<?php
echo decoct(17);
?>
Output
21
Example
<?php
echo dechex(17);
?>
Output
11
Example
<?php
echo decbin(17);
?>
Output
10001
Example
<?php
echo cosh(90);
?>
Output
6.1020164715892E+38
Example
<?php
echo cos(90);
?>
Output
-0.44807361612917
Example
<?php
echo ceil(5.2);
?>
Output
6
Example
<?php
echo bindec(“0011”);
?>
Output
3
Example
<?php
$octal = “0017”;
$dec = base_convert($octal,8,10);
echo “$octal in octal is $dec in decimal.”;
?>
Output
0017 in octal is 15 in decimal.
<?php
echo atanh(.17);
?>
Output
0.17166666350058
Example
<?php
echo atan(.50);
?>
Output
0.46364760900081