Polymorphism in php

In the last lesson we learnt about interface and how they are different to abstract classes. Today in this lesson we will learn about a very important topic which is Polymorphism What is polymorphism in php ? Lets break the word and find this : Polymorphism word is made of two words i.e (Poly + morphism). Poly means many and

Continue reading

Static methods and properties in php

In the last lesson we learnt about Polymorphism,¬† In this lesson, today we are going to learn about static methods and properties¬†. Before moving further let’s first discuss about the word Static. Static means immovable or stable. It means when we declare a variable or method as static its value remains the same after its execution. Syntax to declare a

Continue reading

Traits in php

In the last lesson we learnt about static method and properties. Today i am going to discuss about traits in php. What is Traits ? In PHP Traits are a mechanism of code inclusion or code re-usability. It is similar to (include, require). There might be a question striking in your mind that, we use inheritance for this purpose. Yes,

Continue reading

PDO (PHP Data Objects)

In the last lesson we learnt Traits . In this lesson we will learn mysql database connection using PDO and we will perform some basic sql queries like (insert, select, update, delete). You might be thinking at this time that if mysql, mysqli are already available then why to learn this PDO ? Since you also know for everything there is

Continue reading