I'm trying to figure out why this works:
$joe = "hey joe";
$something = "joe";
print_r(${$something});
But this doesn't:
$joe["where_you_going"] = "hey joe";
$something = "joe[where_you_going]";
print_r(${$something});
Why is this? Is there a way to do what I attempted in the second example?