PHP Data Types

PHP variables can have values of a variety of data kinds, from straightforward string and numeric types to more complicated data types like arrays and objects.

PHP - Inherited Method Overritten

Inherited methods can be overridden by redefining the methods (use the same name) in the child class.

PHP - Overriding Inherited Methods

Protected properties or methods can be accessible both within the class and by classes descended from it, as we learnt in the previous chapter. Just what does that imply?

PHP OOP - Inheritance

When a class derives from another class, it is said to be inheriting in OOP. All of the parent class's public and protected properties and methods will be inherited by the child class. It may also ha...

How to redirect HTTP to HTTPS Using htaccess

Insecure warnings are now visible in Chrome and Firefox on websites lacking SSL certificates. Visitors will see your website as insecure if SSL is not used. Hence, employing an SSL-encrypted connectio...

PHP | number_format() Function

A number containing grouped thousands can be formatted using the built-in PHP function number_format(). If it is successful, it returns the formatted number; if it is unsuccessful, it displays E WARNI...

Difference between PHP 7 vs PHP 8

The PHP 8 development team brags about increased type safety, better syntax, and greater speed in its announcement. PHP 8 is quicker than PHP 7, and typing is better supported. The syntax also require...