Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

In how many ways we can retrieve the data in the result set of mysql using php?

946


What are the differences between require and include?

1008


What is a stored procedure in mysql?

1089


How many escape sequences are recognized in single-quoted strings?

928


Explain mysql_errno()?

1026


How to get number of elements in an array?

998


What are the new features available in php 7?

998


Is php procedural or oop?

985


Tell me when a conditional statement is ended with an endif?

903


How is a constant defined in a PHP script?

1034


Do you know what does mvc stand for and what does each component do?

962


List some string function name in php?

986


How to check a variable is array or not in php?

1015


What is the difference between substr() and strstr()?

1395


How to remove blank spaces from the string?

1014