what is interface in php? how it is use?

Answer Posted / raju

Interface gets useful when you need to extend a class from
more than one parent class since class can not do this.

Why would you want to implement just a single interface on a
class. After all, a class already has everything that an
interface has.

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a php form?

776


How to get no of arguments passed to a PHP Function?

714


I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

696


Why shouldn't I use mysql_* functions in php?

811


How the result set of mysql be handled in php?

822


Write a program using while loop?

809


What is overloading in php?

766


Explain how we can get the number of elements in an array?

746


What is the use of post in php?

734


Which software is used to run php programs?

737


What is a query give example?

770


What is ltrim?

719


Explain some of the php array functions?

840


How to create an empty array in php?

855


How does session work in php?

768