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. A Look at the WordPress HTTP API: wp_remote_get - the Arguments

      A Look at the WordPress HTTP API: wp_remote_get - the Arguments

      Tutorial Intermediate

      In the last two posts, we've taken a brief survey of the wp_remote_get function as well as a practical implementation of how to use it. Before moving on...

    2. A Look at the WordPress HTTP API: wp_remote_get - the Response

      A Look at the WordPress HTTP API: wp_remote_get - the Response

      Tutorial Intermediate

      In this series, we've been taking a look at the wp_remote_get WordPress HTTP API function in order to understand how it works, how we can use it, and the...

    3. A Look at the WordPress HTTP API: A Practical Example of wp_remote_get

      A Look at the WordPress HTTP API: A Practical Example of wp_remote_get

      Tutorial Intermediate

      In the last article in this series, we took a look at the PHP functions that are available for making remote requests. Specifically, we reviewed: ...

    4. Create a Shortcode to List Posts With Multiple Parameters

      Create a Shortcode to List Posts With Multiple Parameters

      Tutorial Intermediate

      On many of the client sites I build, I find there are times when I need to include a post listing on a page. I'm not talking about archive pages here, but...

    5. A Look at the WordPress HTTP API: A Brief Survey of wp_remote_get

      A Look at the WordPress HTTP API: A Brief Survey of wp_remote_get

      Tutorial Intermediate

      When it comes to making remote requests within the context of web sites, web applications, and even WordPress-based projects, the model that we follow is...

    6. How to Create a Homepage With Multiple Listings Using Custom Queries

      How to Create a Homepage With Multiple Listings Using Custom Queries

      Tutorial Intermediate

      WordPress gives you a couple of built-in options for your website's front page: a display of your most recent blog posts or a static page of your choice. But...

    7. Diving Into Symfony 2

      Diving Into Symfony 2

      Tutorial Intermediate

      Frameworks are hot topics in the web-industry and have been for some time. In this vast sea of flavors is Symfony - an extensive PHP framework that follows...

    8. Integrating Multiple Choice Quizzes in WordPress: Creating the Front End

      Integrating Multiple Choice Quizzes in WordPress: Creating the Front End

      Tutorial Intermediate

      This is the second part of the series on developing a multiple choice quiz plugin for WordPress. In the first part we created the backend of our plugin to...

    9. How to Accept Payments With Stripe

      How to Accept Payments With Stripe

      Tutorial Intermediate

      Processing credit cards is unfortunately far more difficult than we might hope, as developers. Given that it’s such a common task, is it really necessary...

    10. The WordPress Coding Standards: Database Queries and Formatting SQL Queries

      The WordPress Coding Standards: Database Queries and Formatting SQL Queries

      Tutorial Beginner

      Aside from the summary that we're going to be providing as the last article in this series, this is the last explication of the WordPress Coding Standards...

    11. How to Set Up Recurring Payments

      How to Set Up Recurring Payments

      Tutorial Intermediate

      It's likely that, at some point, you'll want to implement recurring or subscription payments for a SaaS or other service. Thankfully, PayPal offers the tools...

    12. From Procedural to Object Oriented PHP

      From Procedural to Object Oriented PHP

      Tutorial Intermediate

      This tutorial was inspired by a speech given by Robert C. Martin that I watched a year or so ago. The main subject of his talk is about the possibility of...