$array = array("test" => "テスト");
$key = "test";
// A
echo $array["$teset"];
// B
echo $array[$test];

Bなんですけど変数に"や'で囲まなくてもいいのでしょうか?
echo $array["'". $test. "'"];な感じに囲むものでしょうか?