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
What is the meaning of a persistent cookie?
Php says that an array is an ordered map. But how the values are ordered in an array?
What are the types of variables in php?
What is the main function of php?
Explain Traits in PHP?
How can we change the value of a constant?
Explain me what is x+ mode in fopen() used for?
Is key in array php?
Which variable declarations within a class is invalid in php?
What is the use of friend function in php?
What is difference between mysqli and mysql?
Tell me what is the definition of a session?
What is PHP? Who is the father or inventor of PHP?
What is difference between mysql_connect and mysqli_connect?
What are sql injections, how do you prevent them and what are the best practices?