PHP Type Hinting with interface and abstract class
PHP Type Hinting In the last chapter, we have seen the PHP type hinting for arrays and objects. In this chapter, we will see how in some situations object type hinting would not work, and then, in that case, we can use abstract class or interface type hinting. The PHP Type hinting for the interface … Read more