what is interface in php? how it is use?
Answer Posted / sivannarayana
interface = multiple inheritance
means:
An interface is a named collection of method definitions, without implementation.
example:
interface interfaceName{
public function func1();
public function func2();
}
//we will use this interface as
class ClassName implements interfaceName
{
//note all interface func's must implement here
}
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the features of php 7?
What is the use of callback in php?
What does $globals mean?
What is helper function?
What is difference between post and put in rest?
Is uploaded file php?
What is the use of explode() function?
How to find current date and time?
What is a string in r?
What is lamp in php?
Write a program to display a table of any given number?
Xplain is it possible to use com component in php?
What does $_ post mean in php?
What is php addslashes?
What is namespace in php?