- abs(n)
Return absolute value - base_convert(n, from, to)
Convert a number from one base to another - ceil(n)
Round up number nearest integer - floor(n)
Round down a number nearest integer - sin(n)
Return sine of a number - cos(n)
Return cosine of a number - tan(n)
Return tangent of a number - hypot(b, h)
Calculate the hypotenuse of right angle triangle - log(n)
Return natural logarithm of a number - log10(n)
Return the base 10 logarithm of a number - max(arg1, arg2)
Return max value number from an array - min(arg1, arg2)
Return min value number from an array - mt_rand(from, to)
Generate a random number it is fast than rand - pi()
Return pi value - pow(base, exponent)
Return power of a number - rand(from, to)
Return random value - round(n)
Round a floating-point number - sqrt(n)
Return square root of a given number
example
<?php
echo "abs <br>";
echo abs(-90);
echo "<br>";
echo "base_convert <br>";
echo base_convert(5, 10, 2);
echo "<br>";
echo "ceil <br>";
echo ceil(1.2);
echo "<br>";
echo "floor <br>";
echo floor(1.9);
echo "<br>";
echo "sin <br>";
echo sin(90);
echo "<br>";
echo "cos <br>";
echo cos(90);
echo "<br>";
echo "tan <br>";
echo tan(90);
echo "<br>";
echo "hypot <br>";
echo hypot(2, 3);
echo "<br>";
echo "log <br>";
echo log(10);
echo "<br>";
echo "log10 <br>";
echo log10(10);
echo "<br>";
echo "max <br>";
echo max([1,2,3,4,5]);
echo "<br>";
echo "min <br>";
echo min([1,2,3,4,5]);
echo "<br>";
echo "mt_rand <br>";
echo mt_rand(1,1000);
echo "<br>";
echo "pi <br>";
echo pi();
echo "<br>";
echo "pow <br>";
echo pow(2, 3);
echo "<br>";
echo "rand <br>";
echo rand(1, 1000);
echo "<br>";
echo "round <br>";
echo round(3.12);
echo "<br>";
echo "sqrt <br>";
echo sqrt(9);
echo "<br>";
?>