Vinceguy1;11017387 wrote:Nevermind i figured it out
I did
...not really.
// this creates a numerically indexed array, aka "what bradgrafelman said"
$v[1] = "test123";
// this is 1 (not "1", as brad also explained)
$test = 1;
// this *does not* do what you describe
// (it would result in an error: "Notice: Undefined index: $test ..."
echo $v['$test'];
// if you used "double-quotes" (or, better yet, *no* quotes), like this:
echo $v[$test];
// then, you would get the expected output "test123"