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 content:

    1. Magento Theme Development: Bootstrapping

      Magento Theme Development: Bootstrapping

      Tutorial Beginner

      In this second article of our Magento theme development series, we’ll set up the basis of our new theme. We’ll set up the basic directory structure of our...

    2. Build a Static Site Generator Using SPL Iterators

      Build a Static Site Generator Using SPL Iterators

      Course Intermediate

      In PHP, we're all familiar with the foreach, for, do-while, and while looping constructs, which help us quickly and easily iterate over data structures in...

    3. Improved Ajax Techniques for WordPress: Object-Oriented Programming

      Improved Ajax Techniques for WordPress: Object-Oriented Programming

      Tutorial Intermediate

      In the last post, we reviewed some advanced ways to incorporate the WordPress Ajax API into our projects using procedural programming. In this post, we're...

    4. Improved Ajax Techniques for WordPress: Procedural Programming

      Improved Ajax Techniques for WordPress: Procedural Programming

      Tutorial Intermediate

      I want to revisit the concept of Ajax in WordPress so you see some of the new APIs and how to employ them in your day-to-day work or how to refactor some of...

    5. Add an Automatic 'Featured Image' to Blog Posts Based on Category

      Add an Automatic 'Featured Image' to Blog Posts Based on Category

      Tutorial Advanced

      Adding each post's featured image to your blog listing is quite straightforward, but what if you want to give your categories featured images instead and...

    6. Building a Product CSV Import Tool in OpenCart: Part 2

      Building a Product CSV Import Tool in OpenCart: Part 2

      Tutorial Intermediate

      In our last tutorial we discussed how to implement an import tool, in which we created an import button and its front-end template. Today we’ll learn how we...

    7. Building a Product CSV Import Tool in OpenCart - Part 1

      Building a Product CSV Import Tool in OpenCart - Part 1

      Tutorial Beginner

      Suppose you have a list of products for your store which prices needs to be updated on site. But you hate manual jobs? You want a solution where you can...

    8. WP_Query Arguments: Date

      WP_Query Arguments: Date

      Tutorial Intermediate

      In this part of the series on WP_Query, learn how to query your posts by their publication date and use complex arrays of arguments to create more flexible...

    9. Set Up Scheduled Tasks in Magento

      Set Up Scheduled Tasks in Magento

      Tutorial Intermediate

      Magento, being one of the most popular e­-commerce frameworks, provides plenty of catalog features and other utilities which set it apart from its rivals....

    10. Use Two Loops to Output Your First Blog Post Differently

      Use Two Loops to Output Your First Blog Post Differently

      Tutorial Intermediate

      Ever wanted to show more detail for the first post on your main blog page? Learn how to do it using the WP_Query class and the pre_get_posts hook.

    11. Mastering WP_Query: Actions and Filters

      Mastering WP_Query: Actions and Filters

      Tutorial Intermediate

      In this third part of our series, we're going to review the actions and filters related to WP_Query.

    12. Quick Tip: Accept Multiple Vouchers in OpenCart 2.0

      Quick Tip: Accept Multiple Vouchers in OpenCart 2.0

      Tutorial Beginner

      OpenCart doesn't allow its users to use multiple vouchers for shopping by default. In this article we are going to understand multiple vouchers and their...