PHP Tutorials - page 4

A collection of tutorials for learning PHP.

  1. Lean to find the common multiples between two numbers in PHP; the tutorial starts by teaching you about multiples, then moves on to common multiples.
  2. This tutorial shows how to check if a number is a decimal number using the PHP floor function.
  3. We can access other classes properties (variables) and methods (functions) by injecting the class object in the class that needs it.
  4. Should you use file_get_contnts or cURL when performing HTTP requests from PHP? It does not matter; but regardless of which you use, you should still handle errors properly!
  5. Learn what PHP objects are, and how to use them in your own PHP coding adventures.
  6. Why the caret character is not working in exponential growth calculations in PHP, and what to use instead.
  7. Vanilla PHP is basically plain PHP, without the use of extra frameworks and libraries to help you in the development process.
  8. This article explains why- and how to avoid the use of PHP superglobals such as $_POST and $_GET inside your PHP classes.
  9. How to install and use composer locally, without the need to write sudo all the time.
  10. How to install the GD library and use it to write text to an image.