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. Set Up Caching in PHP With the Symfony Cache Component

      Set Up Caching in PHP With the Symfony Cache Component

      Tutorial Intermediate

      Learn about the Symfony Cache component, an easy way to add caching to your PHP applications. This helps improve the overall performance of your application...

    2. Introduction to the Instagram API

      Introduction to the Instagram API

      Tutorial Intermediate

      More than 26% of all online adults use Instagram to post intriguing real-time imagery from around the world, making it an ideal platform for web developers...

    3. PHP Case Statement Quick Reference

      PHP Case Statement Quick Reference

      Tutorial Beginner

      In this tutorial, I will show you how to use switch-case in PHP to compare a variable with many different values.

    4. 9 Best PHP Blog Scripts and Blogging Platforms

      9 Best PHP Blog Scripts and Blogging Platforms

      Tutorial Beginner

      Using the PHP blog scripts featured in this article, you can run a self-hosted blogging platform, build an independent blog, or add a blog to your existing...

    5. Resize and Manipulate Images in PHP (With Examples)

      Resize and Manipulate Images in PHP (With Examples)

      Tutorial Intermediate

      This tutorial will teach you how to transform an image using the convolution matrix and how to use different image copying and resize functions in GD to add...

    6. WP_Query Arguments: Status, Order, and Pagination

      WP_Query Arguments: Status, Order, and Pagination

      Tutorial Intermediate

      In the next part of this series on WP_Query, learn about the arguments you can use to query posts by status, to define the order in which they'll be output,...

    7. How to Sort Arrays in PHP

      How to Sort Arrays in PHP

      Tutorial Beginner

      In this tutorial, you'll learn how to sort an array in PHP. You'll learn how to sort in ascending or descending order based on its keys or values. You will...

    8. Building Web Applications From Scratch With Laravel

      Building Web Applications From Scratch With Laravel

      Tutorial Intermediate

      We'll build a web application from scratch, while diving into a great new PHP framework that's rapidly picking up steam, called Laravel — a simple and...

    9. 11 Best PHP URL Shortener Scripts (Free and Premium)

      11 Best PHP URL Shortener Scripts (Free and Premium)

      Tutorial Beginner

      In this post, I'll review the best PHP URL shortener scripts on CodeCanyon. I'll also show you three good free URL shortener scripts that you can download...

    10. 11 Best PHP Learning Management System (LMS) Scripts

      11 Best PHP Learning Management System (LMS) Scripts

      Tutorial Beginner

      Whether you run an in-person school or an online learning platform, you need a learning management system (LMS) that will help you run your enterprise...

    11. Task Scheduling in Laravel

      Task Scheduling in Laravel

      Tutorial Beginner

      Learn about one of the exciting features of the Laravel web framework—task scheduling. You'll learn how to create your own custom scheduled tasks.

    12. Mastering WP_Query: Using the Loop

      Mastering WP_Query: Using the Loop

      Tutorial Intermediate

      Continuing our series on WP_Query, in this tutorial I'll outline how you should use the loop with WP_Query.