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...


Tell me in php, what are magic methods and how are they used?



Tell me in php, what are magic methods and how are they used?..

Answer / Kumar Aman

Magic methods, also known as 'magic functions', are special PHP functions that automatically trigger when certain events occur. Magic methods begin and end with double underscores (__). Some examples include: 1) __construct(): runs whenever an object is instantiated. 2) __destruct(): runs right before the script ends or an object is destroyed. 3) __get($name): automatically generates a method to access public properties when they are called by their property name.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

What encryption does wordpress use?

1 Answers  


How to add custom dynamic sidebars in wordpress?

1 Answers  


what’s the difference between site_url() and home_url()?

1 Answers  


What is the purpose of a blog?

1 Answers  


How do I save on wordpress?

1 Answers  


How do I revert back to my old wordpress theme?

1 Answers  


What is an example of taxonomy?

1 Answers  


Tell me is wordpress good for google ranking and seo?

1 Answers  


Explain me would you initialize your strings with single quotes or double quotes?

1 Answers  


Is wordfence free?

1 Answers  


Can I create a database in wordpress?

1 Answers  


How many pages should a blog have?

1 Answers  


Categories