PHP Tutorials

A collection of tutorials for learning PHP.

  1. PHP Switch Statement Tutorial. Learn how to work with Switch statements in PHP, and about using Switch vs If Statements.
  2. This tutorial explains how to create a PHP script to show a random image in a browser.
  3. How to do disk operations, such as creating and deleting files, in PHP.
  4. Setting custom HTTP Headers with cURL is useful when changing User Agent or Cookies. Headers can be changed two ways, both using the curl_setopt function.
  5. Learn how to write if statements in PHP in this tutorial. It also includes a video for those who prefer to get things explained.
  6. Tutorial on how to use proxy servers with cURL and PHP
  7. How to use cURL to send HTTP GET and POST requests from PHP applications.
  8. How to send HTTP requests using the build-in file functions of PHP.
  9. Tutorial on how to use the while and for loops of PHP.
  10. This tutorial explains how arrays may be created in PHP, and what they can be used for.
  11. Tutorial showing how to use Sessions in PHP.
  12. Tutorial on how to use PHPs include, include_once and require.
  13. How to track keywords and keyphrases with PHP's preg_match_all.
  14. Beginners Tutorial in Object-oriented programming in PHP.
  15. We can access other classes properties (variables) and methods (functions) by injecting the class object in the class that needs it.