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
Explain scalar type declarations in php7?
Why session timeout is important?
how to use http headers inside php? Write the statement through which it can be added?
What is memcache?
When is a conditional statement ended with endif?
What is the function of mysql_real_escape_string in php?
Can I include php in javascript?
What is the difference between query and inquiry?
Why laravel is the best php framework in 2019?
How do you destroy a particular or all Sessions?
Why laravel is best php framework?
How does session work in php?
What are php variables?
What is singleton design pattern in php?
what does this symbol mean in php?