我有一个这样的数组
$data = array(
"some" => "163",
"rand" => "630",
"om" => "43",
"words" => "924",
"as" => "4",
"keys" => "54"
);
如何获取与其值相关联的每个集合的键,如下所示:
foreach ($data as $stuff){
$this->$stuff["key"] = $stuff["value"];
}