PHP array keys values

nadunwow

New Member
I have an array like this\[code\]$data = http://stackoverflow.com/questions/3722484/array("some => "163", "rand" => "630", "om" => "43", "words" => "924", "as" => "4", "keys" => "54");\[/code\]How can I get each set's key associated with their values like this:\[code\]foreach ($data as $stuff){ $this->$stuff["key"] = $stuff["value"];}\[/code\]
 
Back
Top