Learn PHP

If you want to be a web developer, you need to learn PHP. Read these free tutorials to master this powerful and popular scripting language.

Getting started with PHP

  • How to Build a Simple REST API in PHP

    How to Build a Simple REST API in PHP

    Sajal Soni
  • How to Use Sessions and Session Variables in PHP

    How to Use Sessions and Session Variables in PHP

    Sajal Soni
  • How to Upload a File in PHP (With an Example)

    How to Upload a File in PHP (With an Example)

    Sajal Soni
  • All PHP tutorials:

    1. Style Different Categories in Your WordPress Site Differently Using CSS

      Style Different Categories in Your WordPress Site Differently Using CSS

      Tutorial Beginner

      Sometimes you may want to make the different sections of your website or blog look quite different, either with different branding or different colors. Here...

    2. How to Program With Yii2: Specialized Validations

      How to Program With Yii2: Specialized Validations

      Tutorial Intermediate

      In part two of our miniseries on Yii2 validations, we explore highly useful validations for common web development requirements such as URL, email, file and...

    3. Style Posts by Category on Your Main Blog Page

      Style Posts by Category on Your Main Blog Page

      Tutorial Beginner

      Being able to style posts according to their category will make it easier for visitors to identify how your posts are structured and make your site look more...

    4. The Ternary Operator in PHP

      The Ternary Operator in PHP

      Tutorial Intermediate

      In this video we will talk about the ternary operator in PHP: its syntax, what it is good for and how to use it to implement some nice features.

    5. How to Program With Yii2: Validations

      How to Program With Yii2: Validations

      Tutorial Intermediate

      The Yii Framework's built-in, extensible validators provide powerful data conformance controls which speed web development. Learn how to use them and extend...

    6. Using Social Media to Locate Eyewitnesses: The Twitter API

      Using Social Media to Locate Eyewitnesses: The Twitter API

      Tutorial Intermediate

      In part one, we used the Instagram API to find eyewitnesses to important events. Now we'll use the more difficult Twitter geolocation search API.

    7. E-mail List Alternatives With PHP: Using Mailgun's List API

      E-mail List Alternatives With PHP: Using Mailgun's List API

      Tutorial Intermediate

      Mailgun's List API provides an economical, scalable option for managing your own mailing lists.

    8. Moving WordPress: Moving Your Site From a Subdirectory to the Root Directory

      Moving WordPress: Moving Your Site From a Subdirectory to the Root Directory

      Tutorial Beginner

      Sometimes you need to develop a WordPress site in a subdirectory and then move it to the root directory for launch. Here I'll show you how to do so in just...

    9. How to Program With Yii2: Timestamp Behavior

      How to Program With Yii2: Timestamp Behavior

      Tutorial Intermediate

      Timestamp records in all your models with minimal effort using this essential Yii2 behavior.

    10. How to Program With Yii2: Blameable Behaviors

      How to Program With Yii2: Blameable Behaviors

      Tutorial Intermediate

      Yii2's behaviors reduce the need to repeat common code. The Blameable Behavior automates the tracking of who created and updated model entries. We'll also...

    11. Accessibility, Part 3: ARIA

      Accessibility, Part 3: ARIA

      Tutorial Intermediate

      WAI-ARIA is a W3C protocol which improves your site's interaction with assistive technologies. In this part we look at how to implement it into your theme.

    12. Using Laravel 5's Authentication Facade

      Using Laravel 5's Authentication Facade

      Tutorial Beginner

      In this quick tip, I am going to show you how to use Laravel 5's authentication facade to implement sessions, user registration, remember me, and password...