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 the difference between print() and echo() in PHP?

557


What is php string function?

526


What are the features of php?

543


What is the timeout period on session values?

560


Explain me the difference between include and require?

510






Which function is used in php to check the data type of any variable?

510


Will php die?

520


Explain converting an object?

602


Does csrf token change?

516


What is return in php function?

484


How to change the principal password?

617


How can I increase my website session?

530


What are the types of variables in php?

529


What is $this in php?

531


What's the difference between using mysql_ functions and pdo?

514