If you want to learn PHP and looked up “PHP resources” on Google, you might get overwhelmed by the number of results available. However, there’s no need to get confused because we have prepared a list of the best sources for beginners like you, so you can get started right away.
The first place you should go to is the official website of PHP, as this is where you’ll find all the latest information, tutorials, updates, and basically everything you need to get started. The website tutorial does a good job in explaining the basics and once you’re done that you can check the official user manual as all the vital information is there. While there are a lot of great PHP sites, you cannot bypass this one, because if there’s something new about PHP, it shows up here first.
W3 Schools provides tutorials for just about every scripting language, and its section on PHP is very detailed. Here you will learn about syntax, loop statements, selection, arrays, strings, and more. After you have mastered the basics, W3 School will explain how you can use sessions, handle cookies and perform advanced scripting using PHP. The lessons in this site are very comprehensive and well suited for beginners, but there’s something here for advanced users too.
Learn PHP Online
Learn PHP Online also provides several tutorials that should help beginners learn the basic concepts, and you’ll also discover how to do simple functions like finding odd or even numbers, understand the difference between print and echo and even prevent SQL attacks.
Last but not the least in our list is PHP Buddy, which comes with plenty of articles covering everything from encrypting to protecting your code to understanding advanced concepts. While there are a lot of tutorials and information on the site, they’re well arranged and should pose no problems if you want to try them out.