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

What are the difference between overloading and overriding in oops?

1012


How to get the length of string?

1026


Which php function will attach one file to another?

976


Explain how we can retrieve the data in the result set of mysql using php?

976


What is the difference between md5(), crc32() and sha1() crypto on php?

1051


Why do we need abstract class in php?

958


What is a php session?

1046


Explain me what are the main error types in php and how do they differ?

988


Why should I learn php?

1050


How is a constant defined in a PHP script?

1024


What is difference between count or sizeof function in php?

983


What is str_replace()?

1010


How do I find environment variables?

990


How to get the number of characters in a string?

1021


How to call javascript function in php on button click?

975