Today, when I was surfing net, I found this very interesting topic – How To Style Dropdown in HTML. Since in HTML the dropdown is the SELECT tag and its rendering depends on both OS and the browser of client. Though you can change its font, font-size, width, height like basic CSS properties but what [...]
Continuing my posts on PHP Magic Functions lets close this topic now and talk about rest of the Magic Functions. __sleep and __wakeup : Serialize and Unserialize Your Objects as You Wish Before talking about these magic functions, I want you to be clear about serialization and unserialization of a variable. Some times you need [...]
In my previous post ( PHP Magic Functions ), I discussed about __construct, __destruct, __call and __callStatic. Lets explore a few more magic functions … __set and __get : Define Object Data Members at Run Time In PHP what happens when you try to write data to an undefined object data member. PHP doesn’t throw [...]
There are some reserved function names in PHP class starting with __ ( double underscore ). These are __construct, __destruct, __isset, __unset, __call, __callStatic, __sleep, __wakeup, __get, __set, __toString, __set_state, __invoke and __clone. You cannot use these functions to serve your logical purpose but these are meant to be used for providing magic functionality. Lets start [...]