View Single Post
  #24 (permalink)  
Old 04-18-2008, 07:43 AM
sureshbabu sureshbabu is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: India
Posts: 101
sureshbabu is on a distinguished road
Send a message via AIM to sureshbabu Send a message via MSN to sureshbabu Send a message via Yahoo to sureshbabu Send a message via Skype™ to sureshbabu
Default Re: Mathematical functions in PHP

The log()
The log() function returns the natural logarithm (base E) of a number.

Syntax
log(x,base)
Example
In the following example we will use the log() function on different numbers:

<?php
echo(log(2.7183) . "<br />");
echo(log(2) . "<br />");
echo(log(1) . "<br />");
echo(log(0) . "<br />");
echo(log(-1))
?>
__________________
Thanks
Regards
Sureshbabu Harikrishnan
+91 9884320017
Reply With Quote