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’s the special meaning of __sleep and __wakeup?



What’s the special meaning of __sleep and __wakeup?..

Answer / Sohan Sagar Jha

In PHP, `__sleep` and `__wakeup` are magic methods used for serialization (converting an object into a format that can be stored or transmitted) and unserialization (recovering data from the serialized format). The `__sleep` method returns an array of properties that should be serialized while the `__wakeup` method is called after an object has been unserialized.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Design a class that should always return a single object ?

3 Answers   NIIT,


How to check your php installation?

1 Answers  


How do I stop a php script?

1 Answers  


What is the maximum size of a database in mysql?

1 Answers  


What is the purpose of the '.myd' file extension? What do thes file contain?

1 Answers  


Tell me what is the use of "ksort" in php?

1 Answers  


class Database { public static $_instance; public static function getInstance() { if(!isset(self::$_instance)) self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME); print_r(self::$_instance); return self::$_instance; } } can any one explain "self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME);" this line

1 Answers  


What is inheritance in php? How many types of inheritance supports php?

1 Answers  


What is a simple php method to make a cross domain data request?

1 Answers  


Why php was called as personal home page?

1 Answers  


Write a program to find a string is palindrome or not?

1 Answers  


Explain include(), include_once, require() and require_once?

1 Answers  


Categories