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.
我正在寻找一种更简单的方法来制作下面的示例:
<?php $q = "Q".rand(1, 3); echo $$q; ?>
谢谢。
<?php $array = array(1,2,3) $key = rand(1, 3); echo $array[$key]; ?>