考慮:使用數組的鍵創建新陣列
$keys = array("some", "thing", "rand", "keys");
我想返回一個數組:
$data = array(
"some" => "163",
"rand" => "630",
"om" => "43",
"words" => "924",
"as" => "4",
"keys" => "54"
);
我使用僅符合某些按鍵,該按鍵想要一個新的數組與普通的鑰匙,創造:
$arr = array(
"some" => "163",
"rand" => "630",
"keys" => "54"
);