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

I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?

516


What is composer install?

595


How do I use isdigit function?

565


Do loops php?

521


What does csrf token mismatch mean?

619






What is get method in java?

535


How do you pass a variable by value?

583


What the use of var_dump()?

584


Why we use get in php?

570


What is the apache?

531


Tell me how to retrieve a cookie value?

535


Is it easy to learn php?

510


What is the function func_num_args() used for?

531


What is the use of strpos in php?

559


How to pad an array with the same value multiple times?

474