1. About.com
  2. Computing & Technology
  3. PHP / MySQL

PHP and Math

PHP allows you to preform numerous mathematical tasks. You can do anything from simple addition to complex geometry. You can also do things like round numbers, convert bases, or find the absolute value of numbers.

More PHP Math

PHP / MySQL Spotlight10

Bool School

Tuesday January 24, 2012

Most people understand the basics of mathematical operators and comparison operators because they are the basic math we all grew up learning.  Sometimes people have a bit more trouble grasping the Boolean logic used in computer programs.  Here is a quick tutorial to help you start understanding boolean logic.

Arrays in PHP

Tuesday January 24, 2012

An array is a type of data structure we use in PHP to store information.  Usually the information that we store in the array comes form a MySQL database or some other outside data source which we then temporarily store in an array to work with it.  Learn more about arrays.

Tanh() in PHP

Friday January 20, 2012

If you need to find the hyperbolic tangent of a number, look no further... Tanh() is a PHP function that does exactly that.  Tanh (x) will return the hyperbolic tangent of x, with is calculated by taking SinH/CosH.  The resulting curve's inverse is the arc hyperbolic tangent.  Read More.

Create a Unique ID

Sunday January 15, 2012

You can generate a unique identification in PHP using the uniqid () PHP function.  This ID will be 13 or 23 characters long and you can append your own text to the beginning or end of it (so instead of 1234567891234 you could have myid1234567891234).  To learn more and to see some examples of uniqid () in action, check out this article.

Discuss in my forum

©2012 About.com. All rights reserved. 

A part of The New York Times Company.