what is interface in php? how it is use?

Answer Posted / thirupathi rao

Interface is a prototype of method body.
when ever we want to develop the application by third party
vendor people, at that time we have to provide only interface.
why because the people gives the implementation in their own
way so we have to provide the interface.

Is This Answer Correct ?    30 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What function do we use to find length of string, and length of array?

521


What does the php error 'parse error in php - unexpected t_variable at line x' means?

612


What is the difference between php traits vs interfaces?

478


How is the ternary conditional operator used in php?

510


Which function you can use in php to open a file for reading or writing or for both?

548






Which is faster for or foreach?

499


What is escaping to php?

528


What is the difference between indexed and associative array?

497


What is difference between isset and empty in php?

524


Will php die?

520


What is $globals php?

528


How we can get the number of elements in an array?

8400


Tell me can the value of a constant change during the script's execution?

563


Explain php split() function.

532


What is asort php?

532