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; } Quote 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. Quote 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? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.