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. How to Program With Yii2: Rich Text Input With Redactor

      How to Program With Yii2: Rich Text Input With Redactor

      Tutorial Intermediate

      The Yii community purchased a license to Imperavi's Redactor, a fast, clean and extendable rich text editor for the web. Learn how to integrate Redactor into...

    2. Styling Sections in a Page-Based Site Differently

      Styling Sections in a Page-Based Site Differently

      Tutorial Beginner

      Learn how to create sections in a site based on a hierarchical page structure or page categories with different styling for each section.

    3. Use a Custom Post Type for Your Sidebar Content

      Use a Custom Post Type for Your Sidebar Content

      Tutorial Intermediate

      Using a custom post type to add sidebar content to your site can make things easier for users than relying on widgets. Here's how to do it.

    4. Building a Product CSV Export Tool in OpenCart

      Building a Product CSV Export Tool in OpenCart

      Tutorial Intermediate

      If you're running an online store or any web business and you don't know the importance of CSV (Comma-Separated-Value), then it's time to upgrade your...

    5. How to Program With Yii2: Working With Asset Bundles

      How to Program With Yii2: Working With Asset Bundles

      Tutorial Intermediate

      Yii2 Asset Bundles make it easier to manage and optimize when and where we use JavaScript and CSS within our web applications. Learn to use Asset Bundles in...

    6. 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...

    7. 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...

    8. 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...

    9. 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.

    10. 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...

    11. 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.

    12. 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.