1. Computing
Send to a Friend via Email

Learn to write PHP

Getting started with PHP is easier than you might think, and it allows you create rich interactive websites.  Whether you're writing code from scratch, or wanting to pick up some skills to modify existing PHP, use the links below to get started!

Start Learning PHP Now
PHP / MySQL Spotlight10


Friday April 18, 2014

The substr () function is used to return a portion of a string.  You set the starting point, and how many characters you want it to return.  It then gives you back just that portion of the string.

Stripping Slashes

Saturday April 12, 2014

If you are going to store information safely in your database, you have probably added slashes to turn I'm into I\'m.  Now you want to pull that information out of your database for use, and you need to remove the slashes.  You would use the stripslashes () function.

Finding the Square Root

Sunday April 6, 2014

Finding the square root of a number in PHP is easy.  You simply use the SQRT () function.  So, for example, SQRT (25) is 5!

Sin () of a number

Friday April 4, 2014

If you need to calculate the sine of a number, you use the PHP function sin (). Sin is a mathematical function used to calculate the sine of a given number. The result is returned in radians.

©2014 About.com. All rights reserved.