In this article, we’ve listed some useful PHP tutorials which cover the basics of PHP language, such as variables, conditionals, HTML forms, loops, arrays, strings, functions, OOPS, building forms, and building a CMS and much more. So take your time with each tutorial and do enjoy!
This is a great PHP tutorials from PHP.net for beginners to get started. It’s a general introduction to show basics of PHP in a short.
This area is intended for everyone new to PHP. It opens with a series of informal, entertaining tutorials written by Vikram Vaswani, founder and CEO of Melonfire.
Step by Step detailed PHP tutorial for beginners with creating a your first application from scratch.
This is a great PHP tutorial for beginners to learn MVC pattern.
This is the best PHP tutorial source for learning PHP through examples.
This is a short but useful tutorial for PHP beginners which cover all the basics of PHP, such as variables, conditionals, loops, arrays, functions, operators, html forms and error messages.
This is a advance PHP OOP tutorial. It covers all basic concept of OPP, such as objects, abstraction, inheritance, encapsulation, and polymorphism. The tutorial is structured very proper way from basic OOP concept to advance with Inheritance & Polymorphism. It also covers Magic Methods in this tutorial.
This tutorial will show you how to list files and directories with the glob() function in PHP, a combination of the opendir(), readdir() and closedir() functions, and the scandir() function. You will also learn some advanced file/directory listing techniques.
Sometimes you need to re-index a numerically indexed array after removing elements from it. In this tutorial you will learn how to closes up the gaps of an array with example code.
This tutorial explains some amazing things that you can do using PHP and cURL with example.
Here you’ll get a simple PHP script to create a CSV file. The script will call the database and select a table. Then it downloads the content line by line in a csv file.
In this brief tutorial, you’ll learn how to alter the value of a node or an attribute in an xml document using PHP.
This short tutorials explains how to extract the descriptive information embedded in an image, such as the metadata or thumbnails placed in digital photos.
In this tutorial, you’ll learn how to play with remote files, how to read content from remote files and also write them.
Here you’ll learn about Cross-Site Scripting (XSS) which is a type of security hole where a hacker attempts to inject client-side scripting into a web page that others are able to view. In this tutorial you’ll find ways to protect your website from XSS with PHP.
This tutorial is on everybody’s favourite: regular expressions. The tutorial explains what regular expressions are, the Perl compatible regular expressions, the basic syntax of PHP regular expressions, how to use regular expressions in PHP, useful regex functions. Additionally, the tutorial includes a cheat sheet where all the basic stuff is gathered in one neat place.
The tutorials so far include sections on MySQL and how to use it with PHP, but since PHP and MySQL are used together [almost] all the time, it wouldn’t hurt to cover a tutorial that focuses solely on MySQL. This tutorial explains how to create a new MySQL database, connect to it, create users and give them permissions, write a simple script, create and populate a database, retrieve data, escape characters, print column headers, count fields and rows, write and read images, and use transactions.
This tutorial goes beyond PHP, but since in real life that is exactly what you need, that is why the tutorial is included here. First you need to create the database schema, then the XHTML code, then the CSS, and only after that you will move on to the PHP side of things.
This tutorial will probably take you more than an afternoon to complete. Having said that, it also isn’t as hard as it seems. In order to create the CMS, you do need to be familiar with the SQL syntax and MySQL, so if you do lack knowledge in these areas, first check the tutorials that teach MySQL above and then come back to this on
For a shopping site, credit cards payments are a must. There are many ways to accept credit card payments but PayPal is the most popular. In order to complete this tutorial you will need to have a merchant account with PayPal. The steps you need to follow are: create the directory structure, setup the config file, create an API request, send the HTTP request to PayPal, and parse the API response.
This tutorial will take you through the steps to create a simple PHP-based poll, including database setup, vote processing, and displaying the poll.
This is a brief description of some PHP tutorials links which I have found useful. Instead of this, there are a lot of useful tutorials available online. Whenever you found any useful tutorial then don’t forget to mention in comments discussion.