Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

print(decoct(255));
?>


double deg2rad(double angle)


The deg2rad function returns the radians that correspond to angle argument, specified in
degrees.


<?
//prints 1.5707963267949
print(deg2rad(90));
?>


double exp(double power)


The exp function returns the natural logarithm raised to the power of the argument.


<?
//prints 20.085536923188
print(exp(3));
?>


integer floor(double value)


The floor function returns the floor of the argument, which is the integer part of the
argument.


<?
//prints 13
print(floor(13.2));
?>


integer hexdec(string hexadecimal_number)


The hexdec function converts a string that represents a hexadecimal number into an
integer. Preceding the number with "0x" is optional.


<?
print(hexdec("FF"));
print("
\n");

Free download pdf