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 Quote Link to comment Share on other sites More sharing options...
wolves Posted August 15, 2006 Author Share Posted August 15, 2006 anyone :( ? Quote Link to comment 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.