Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
構文に関する簡単な質問です。単純化するには:
$testme[0] = "hello"; $v = "me"; echo $test{$v}[0]; //expect this to output "hello"
「私」が変数によって参照されるように、上記の最終行を書く方法はありますか?
ありがとう!
使用する
echo ${'test' . $v}[0];
代わりは