Pramod T P

Search
Skip to content
  • Home
  • PHP
  • WordPress
  • Linux
  • Magento
  • My SQL
  • Profile
  • comments

Daily Archives: May 3, 2012

PHP

pi

May 3, 2012 Pramod T P
It returns the value of pi
Example

<?php
echo pi();
?>

Output

3.1415926535898

FunctionsMathPHP
PHP

octdec

May 3, 2012 Pramod T P
It converts octal number to decimal

Example

<?php
echo octdec(11);
?>

Output

9

FunctionsMathPHP
PHP

mt_srand

May 3, 2012 Pramod T P
It  seed the better random number generator

Example

<?php
mt_srand(mktime());
echo(mt_rand());
?>

Output

254590754

FunctionsMathPHP
PHP

mt_rand

May 3, 2012 Pramod T P
It generates a better random value

Example

<?php
echo mt_rand(111,2222);
?>

Output

1787

FunctionsMathPHP
PHP

mt_getrandmax

May 3, 2012 Pramod T P
It returns  largest possible random value

Example

<?php
echo mt_getrandmax();
?>

Output

2147483647

FunctionsMathPHP
PHP

min

May 3, 2012 Pramod T P
It returns lowest value

Example

<?php
echo min(10,11,17)
?>

Output

10

FunctionsMathPHP
PHP

max

May 3, 2012 Pramod T P
It returns maximum value

Example

<?php
echo max(10,11,17)
?>

Output

17

FunctionsMathPHP
PHP

log

May 3, 2012 Pramod T P
It returns natural logarithm

Example

<?php
echo log(17)
?>

Output

2.8332133440562

FunctionsMathPHP
PHP

log1p

May 3, 2012 Pramod T P
It returns log(1+x)

Example

<?php
echo log1p(1)
?>

Output

0.69314718055995

FunctionsMathPHP
PHP

log10

May 3, 2012 Pramod T P
It returns  Base-10 logarithm value
Example

<?php
echo log10(1);
?>

Output

0

FunctionsMathPHP

Posts navigation

← Previous 1 2 3 … 5 Next →

Zend | Magento Certified PHP | eCommerce Architect

For Latest Updates
Visit phpcodez.com

Categories

Recent Posts

  • Regular expression
  • preg_match
  • Redirect root domain to a subdomain .htaccess
  • Redirect root domain to a subfolder .htaccess
  • Force SSL htaccess
May 2012
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Apr   Jun »

Recent Comments

togel online's avatartogel online on How to terminate the current s…
business funding's avatarbusiness funding on compare two strings – ja…
unsecured loans uk's avatarunsecured loans uk on Function to add an element int…
treating back pain's avatartreating back pain on Submit HTML form to pop up pag…
Pura Cleanse's avatarPura Cleanse on Add the block "Based on y…
  • RSS - Posts
Blog at WordPress.com.
Pramod T P
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Pramod T P
    • Already have a WordPress.com account? Log in now.
    • Pramod T P
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...