wolves Posted August 14, 2006 Share Posted August 14, 2006 [code]class foo { public $myvar = array(); public function setmyvar($key,$val) { $this->myvar[$key] = $val; } //need help here public function bar() { // $somevar[ all keys from $this->myvar ] = "some value"; // ex: if this->myvar has 3 keys, 'name','location','age' //I need that , $somevar['name']['location']['age'] = "some value" } }[/code]tks Link to comment https://forums.phpfreaks.com/topic/17500-help-setting-object-vars/ Share on other sites More sharing options...
wolves Posted August 15, 2006 Author Share Posted August 15, 2006 anyone :( ? Link to comment https://forums.phpfreaks.com/topic/17500-help-setting-object-vars/#findComment-75075 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.