spyworld Posted December 13, 2012 Share Posted December 13, 2012 How to custom the magic method? foreach($data as $key => $value){ $this->data->$key = $value; } function __get($name) { $this->$name; } function __set($name,$value) { $this->$name = $value; } Link to comment https://forums.phpfreaks.com/topic/271945-add-variable-in-magic-method/ Share on other sites More sharing options...
Christian F. Posted December 13, 2012 Share Posted December 13, 2012 What? I recommend that you read this article. Because your question doesn't make any sense to me, I'm afraid. Link to comment https://forums.phpfreaks.com/topic/271945-add-variable-in-magic-method/#findComment-1399118 Share on other sites More sharing options...
Stooney Posted December 13, 2012 Share Posted December 13, 2012 how do I shot web? Link to comment https://forums.phpfreaks.com/topic/271945-add-variable-in-magic-method/#findComment-1399221 Share on other sites More sharing options...
Barand Posted December 13, 2012 Share Posted December 13, 2012 how do I shot web? It has to be done with a willow wand at midnight by the light of a full moon Link to comment https://forums.phpfreaks.com/topic/271945-add-variable-in-magic-method/#findComment-1399261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.