World's THINNEST Laptop »

Basic PHP Tutorials for learning PHP

Here are some basic PHP tutorials to get you started if you are new to programming.

Start by learning the basic programming concepts such as variable, data types (such as string, integer, and float), and then the operators - both the arithmetic and string concatenation operators are important.

Next, you will need to learn the branching constructs and looping contructs. The both involves evaluation of conditions. So knowledge of comparison operators are essential.

As your program gets more complex, you will encounter the need for more complex data types such as the array and its methods. You will also have the need to define and call functions.

Variables in PHP

  • PHP Manual: Variables
  • Variables in PHP by w3schools.com
  • PHP Variables and examples by php-learn-it.com
  • PHP variable by tizag.com
  • Strings and Variables by LearningNerd - video
  • Variables Part 1 and Part 2 by Killersites.com

Data Types in PHP

  • Defining Variables and Constants and Working with PHP Datatypes
  • PHP Data types in wikipedia
  • PHP Strings - by tizag.com
  • PHP Strings - by php-learn-it.com

PHP Operators

  • Numbers and Operator - by LearningNerd.com
  • PHP Operators - by php-learn-it.com
  • Assignment Operators - PHP Manual
  • Arithmetic Operators - PHP Manual
  • String Operators - PHP Manual
  • Comparison Operators - PHP Manual

Branches in PHP

  • Conditional and switch statements - short video by learningnerd.com
  • Conditional statement - longer video by killerphp.com
  • if-elseif-else branches by php-learn-it.com
  • Switch statement by php-learn-it.com

Loops in PHP

  • Loops in PHP - short video by learningnerd.com
  • Loops in PHP - longer video by killerphp.com
  • "while loop", "for loop", "foreach loop", and "do while loops" by tizag.com

Arrays in PHP

  • Arrays - short video by learningnerd.com
  • Arrays Part 1 and part 2 - video tutorials by killerphp.com
  • Arrays - by tizag.com
  • Arrays - by php-learn-it.com
  • PHP Manual - Arrays

Functions in PHP

  • Functions - short video by learningnerd.com
  • PHP functions part 1, part 2, and part 3 longer videos by killerphp.com
  • Creating functions part 1, part 2, and part 3 videos by killerphp.com
  • Functions by php-learn-it.com
  • Functions by tizag.com
  • PHP Manual: Functions

After you have become comfortable with these basic PHP concepts, it is time to progress onto more advanced PHP topics.