PHP Backend Dev

Level-up your Backend dev skills

  1. How to Check If an Array Contains All Elements of Another Array in PHP?

    Find out how you can determine whether all elements of one array exist in another array in PHP. Knowing this will help you check if the first array contains every element of the second array.
  2. How to Generate Random Boolean Values in PHP?

    Learn about different ways in which you can generate random boolean true or false value in PHP for general purpose use.
  3. Which Values Are Considered Falsy in PHP?

    One of the basic things every PHP developer needs to know about is which values in PHP are considered falsy. Find out if you know them all in this post.
  4. How Is null Comparison Done When Using the PHP Spaceship Operator (<=>)?

    Learn how null values are compared when using the PHP spaceship operator (<=>). Knowing this will give you a deeper understanding of the rules governing this comparison process.
  5. How Are Objects Compared When Using the PHP Spaceship Operator (<=>)?

    Learn how objects are compared based on the class instance, properties, and values when using the PHP spaceship operator (<=>). Knowing this will give you a deeper understanding of the rules governing this comparison process.
  6. How Are Arrays Compared When Using the PHP Spaceship Operator (<=>)?

    Learn how arrays are compared based on size, keys, and values when using the PHP spaceship operator (<=>). Knowing this will give you a deeper understanding of the rules governing this comparison process.
  7. How to Dynamically Access Class Constants in PHP?

    Learn about different ways of accessing a class constant in PHP dynamically. Knowing this will help you write more flexible and adaptable code that can access and utilize class constants based on runtime conditions.
  8. Can Class Constants be Overridden in PHP?

    Explore whether class constants can be overridden in PHP subclasses. Discover how PHP's inheritance model treats class constants and gain insights into their behavior within different levels of the hierarchy.
  9. Can Class Constants be Type Hinted in PHP?

    Find out how/if you can add type hints to class constants in PHP. Knowing this will help you improve the clarity and reliability of your code while working with inheritance and ensuring accurate data type usage.
  10. PHP Estimated Reading Time Code Snippet

    A PHP code snippet for calculating/estimating reading time for a given string of text. This snippet can be useful to display reading times for articles on blogs for example.
  11. How to Fix 'Use of "static" in callables is deprecated' PHP Error?

    Find out why you are getting the "Deprecated: Use of "static" in callables is deprecated" error in PHP, and how you can go about fixing it.
  12. How to Fix 'Use of "parent" in callables is deprecated' PHP Error?

    Find out why you are getting the "Deprecated: Use of "parent" in callables is deprecated" error in PHP, and how you can go about fixing it.