1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

How can I learn PHP?

By

Question: How can I learn PHP?
I'd like to learn some PHP to make my website more interactive but I don't know how to get started! Where can I start learning the basics?
Answer: Before you start learning PHP, it's probably a good idea if you have at least some HTML knowledge. This is because PHP has no formatting at all, so while it can do many things that HTML can't, it can't make your site look nice. Thats why it is used in conjunction with HTML. PHP for the muscle, HTML for the aesthetics.

First things first, let's check if you have PHP! This will also tell you more information about the version of PHP that you are running.

Next, you have to do a Hello World! script. Sure it's simple, and it's cheesy, but its tradition when learning a language.

Now it's time to really start learning the basics! This tutorial shows all of the basics you need to start writing PHP scripts.

If you are someone, like me, who learns best from example, you should probably browse our Step by Steps section, for detailed instruction (and full example code) for creating different types of scripts.

Related Video
Basic PHP Syntax
Using PHP With HTML
  1. About.com
  2. Technology
  3. PHP / MySQL
  4. Troubleshooting
  5. How to Learn PHP - Start Learning PHP

©2014 About.com. All rights reserved.